public class PropertyType extends MetadataItem
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_TYPE
The PropertyType ITEM_TYPE.
|
metadata
Constructor and Description |
---|
PropertyType()
Instantiates a new Property type.
|
PropertyType(Metadata metadata)
Instantiates a new Property type with the specified Metadata.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAutomaticMappingsFrom()
Retrieves the set of JCR properties from which properties of this type would be automatically initialized from.
|
Set<PropertyType> |
getChildPropertyTypes() |
List<DateRange> |
getDateRanges()
Retrieves the date ranges.
|
String |
getDefaultValue()
Retrieves the default value defined for property using this PropertyType.
|
List<IpRange> |
getIpRanges()
Retrieves the ip ranges.
|
String |
getMergeStrategy()
Retrieves the identifier of the
PropertyMergeStrategyType to be used in case profiles with properties using this PropertyType are being merged. |
List<NumericRange> |
getNumericRanges()
Retrieves the numeric ranges.
|
Double |
getRank()
Retrieves the rank of this PropertyType for ordering purpose.
|
String |
getTarget()
Retrieves the target for this property type, indicating the type of elements this property type is defined for.
|
ValueType |
getValueType()
Retrieves the value type associated with values defined for properties using this PropertyType.
|
String |
getValueTypeId()
Retrieves the identifier of the value type constraining values for properties using this PropertyType.
|
Boolean |
isMultivalued()
Whether properties using this property type are multi-valued.
|
Boolean |
isProtected()
Whether properties with this type are marked as protected.
|
void |
setAutomaticMappingsFrom(Set<String> automaticMappingsFrom)
Specifies the set of JCR properties from which properties of this type would be automatically initialized from.
|
void |
setChildPropertyTypes(Set<PropertyType> childPropertyTypes) |
void |
setDateRanges(List<DateRange> dateRanges)
Sets the date ranges.
|
void |
setDefaultValue(String defaultValue)
Sets the default value that properties using this PropertyType will use if no value is specified explicitly.
|
void |
setIpRanges(List<IpRange> ipRanges)
Sets the ip ranges.
|
void |
setMergeStrategy(String mergeStrategy)
Sets the identifier of the
PropertyMergeStrategyType to be used in case profiles with properties using this PropertyType are being merged |
void |
setMultivalued(Boolean multivalued)
Specifies whether properties using this property type are multi-valued.
|
void |
setNumericRanges(List<NumericRange> numericRanges)
Sets the numeric ranges.
|
void |
setProtected(boolean protekted)
Specifies whether properties with this type are marked as protected.
|
void |
setRank(Double rank)
Specifies the rank of this PropertyType for ordering purpose.
|
void |
setTarget(String target)
Sets the target for this property type.
|
void |
setValueType(ValueType valueType)
Sets the value type.
|
void |
setValueTypeId(String valueTypeId)
Sets the value type identifier.
|
getMetadata, getScope, setMetadata
equals, getItemId, getItemType, getItemType, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
public static final String ITEM_TYPE
public PropertyType()
public PropertyType(Metadata metadata)
metadata
- the metadata associated with the specified metadatapublic String getTarget()
target
would be "profiles"
.
TODO: deprecated?public void setTarget(String target)
target
- the target for this property type, indicating the type of elements this property type is defined forpublic String getValueTypeId()
ValueType
public void setValueTypeId(String valueTypeId)
valueTypeId
- the value type identifierpublic ValueType getValueType()
public void setValueType(ValueType valueType)
valueType
- the value type associated with values defined for properties using this PropertyTypepublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- the default value that properties using this PropertyType will use if no value is specified explicitlypublic Set<String> getAutomaticMappingsFrom()
public void setAutomaticMappingsFrom(Set<String> automaticMappingsFrom)
automaticMappingsFrom
- the set of JCR properties from which properties of this type would be automatically initialized frompublic Double getRank()
public void setRank(Double rank)
rank
- the rank of this PropertyType for ordering purposepublic String getMergeStrategy()
PropertyMergeStrategyType
to be used in case profiles with properties using this PropertyType are being merged.PropertyMergeStrategyType
to be used in case profiles with properties using this PropertyType are being mergedpublic void setMergeStrategy(String mergeStrategy)
PropertyMergeStrategyType
to be used in case profiles with properties using this PropertyType are being mergedmergeStrategy
- the identifier of the PropertyMergeStrategyType
to be used in case profiles with properties using this PropertyType are being mergedpublic List<DateRange> getDateRanges()
public void setDateRanges(List<DateRange> dateRanges)
dateRanges
- the date rangespublic List<NumericRange> getNumericRanges()
public void setNumericRanges(List<NumericRange> numericRanges)
numericRanges
- the numeric rangespublic void setIpRanges(List<IpRange> ipRanges)
ipRanges
- the ip rangespublic Boolean isMultivalued()
true
if properties of this type should be multi-valued, false
otherwisepublic void setMultivalued(Boolean multivalued)
multivalued
- true
if properties of this type should be multi-valued, false
otherwisepublic Boolean isProtected()
true
if properties of this type are protected, false
otherwisepublic void setProtected(boolean protekted)
protekted
- true
if properties of this type are protected, false
otherwisepublic Set<PropertyType> getChildPropertyTypes()
public void setChildPropertyTypes(Set<PropertyType> childPropertyTypes)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.