Package com.adobe.aem.dermis.model
Class ConstraintAsset
- java.lang.Object
-
- com.adobe.aem.dermis.model.AbstractAsset
-
- com.adobe.aem.dermis.model.TypedAsset
-
- com.adobe.aem.dermis.model.ConstraintAsset
-
- All Implemented Interfaces:
IAsset
,IConstraintAsset
,ITypeAsset
,java.io.Serializable
- Direct Known Subclasses:
Property
public abstract class ConstraintAsset extends TypedAsset implements IConstraintAsset
Abstract implementation ofIConstraintAsset
. Implements most common and trivial methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstraintAsset()
ConstraintAsset(java.lang.String name, java.lang.String description, PropertyType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultValue()
Gets the default of this string property.java.lang.Boolean
getExclusiveMaximum()
Gets the exclusive maximum of this numeric property.java.lang.Boolean
getExclusiveMinimum()
Gets the exclusive minimum of this numeric property.java.lang.Double
getMaximum()
Gets the maximum of this numeric property.java.lang.Integer
getMaxItems()
Gets the max items of this array property.java.lang.Integer
getMaxLength()
Gets the max length of this string property.java.lang.Double
getMinimum()
Gets the minimum of this numeric property.java.lang.Integer
getMinItems()
Gets the min items of this array property.java.lang.Integer
getMinLength()
Gets the min length of this string property.java.lang.String
getPattern()
Gets the pattern of this string property.boolean
getProtect()
Returns whether this property is protected or notjava.lang.Boolean
getUniqueItems()
Gets the unique items of this array property.boolean
isReadOnly()
Returns whether this property is read only or notvoid
setDefaultValue(java.lang.String defaultValue)
void
setExclusiveMaximum(java.lang.Boolean exclusiveMaximum)
void
setExclusiveMinimum(java.lang.Boolean exclusiveMinimum)
void
setMaximum(java.lang.Double maximum)
void
setMaxItems(java.lang.Integer maxItems)
void
setMaxLength(java.lang.Integer maxLength)
void
setMinimum(java.lang.Double minimum)
void
setMinItems(java.lang.Integer minItems)
void
setMinLength(java.lang.Integer minLength)
void
setPattern(java.lang.String pattern)
void
setProtect(boolean protect)
void
setReadOnly(boolean isReadOnly)
void
setUniqueItems(java.lang.Boolean uniqueItems)
-
Methods inherited from class com.adobe.aem.dermis.model.TypedAsset
getFormatType, getMediaBinaryEncoding, getMediaType, getSubType, getSubTypeRef, getType, getTypeRef, setFormatType, setMediaBinaryEncoding, setMediaType, setSubType, setSubTypeRef, setType, setTypeRef
-
Methods inherited from class com.adobe.aem.dermis.model.AbstractAsset
getDescription, getId, getName, getTitle, setDescription, setId, setName, setTitle
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.aem.dermis.model.IAsset
getDescription, getId, getName, getTitle
-
Methods inherited from interface com.adobe.aem.dermis.model.ITypeAsset
getFormatType, getMediaBinaryEncoding, getMediaType, getSubType, getSubTypeRef, getType, getTypeRef, setFormatType, setSubType, setType
-
-
-
-
Constructor Detail
-
ConstraintAsset
public ConstraintAsset()
-
ConstraintAsset
public ConstraintAsset(java.lang.String name, java.lang.String description, PropertyType type)
-
-
Method Detail
-
getMinimum
public java.lang.Double getMinimum()
Gets the minimum of this numeric property.- Specified by:
getMinimum
in interfaceIConstraintAsset
- Returns:
- the minimum of this numeric property
-
getMaximum
public java.lang.Double getMaximum()
Gets the maximum of this numeric property.- Specified by:
getMaximum
in interfaceIConstraintAsset
- Returns:
- the maximum of this numeric property
-
getExclusiveMinimum
public java.lang.Boolean getExclusiveMinimum()
Gets the exclusive minimum of this numeric property.- Specified by:
getExclusiveMinimum
in interfaceIConstraintAsset
- Returns:
- the exclusive minimum of this numeric property
-
getExclusiveMaximum
public java.lang.Boolean getExclusiveMaximum()
Gets the exclusive maximum of this numeric property.- Specified by:
getExclusiveMaximum
in interfaceIConstraintAsset
- Returns:
- the exclusive maximum of this numeric property
-
getMinLength
public java.lang.Integer getMinLength()
Gets the min length of this string property.- Specified by:
getMinLength
in interfaceIConstraintAsset
- Returns:
- the min length of this string property
-
getMaxLength
public java.lang.Integer getMaxLength()
Gets the max length of this string property.- Specified by:
getMaxLength
in interfaceIConstraintAsset
- Returns:
- the max length of this string property
-
getPattern
public java.lang.String getPattern()
Gets the pattern of this string property.- Specified by:
getPattern
in interfaceIConstraintAsset
- Returns:
- the pattern of this string property
-
getDefaultValue
public java.lang.String getDefaultValue()
Gets the default of this string property.- Specified by:
getDefaultValue
in interfaceIConstraintAsset
- Returns:
- the default of this string property
-
getMinItems
public java.lang.Integer getMinItems()
Gets the min items of this array property.- Specified by:
getMinItems
in interfaceIConstraintAsset
- Returns:
- the min items of this array property
-
getMaxItems
public java.lang.Integer getMaxItems()
Gets the max items of this array property.- Specified by:
getMaxItems
in interfaceIConstraintAsset
- Returns:
- the max items of this array property
-
getUniqueItems
public java.lang.Boolean getUniqueItems()
Gets the unique items of this array property.- Specified by:
getUniqueItems
in interfaceIConstraintAsset
- Returns:
- the unique items of this array property
-
getProtect
public boolean getProtect()
Returns whether this property is protected or not- Specified by:
getProtect
in interfaceIConstraintAsset
- Returns:
-
isReadOnly
public boolean isReadOnly()
Returns whether this property is read only or not- Specified by:
isReadOnly
in interfaceIConstraintAsset
- Returns:
-
setMinimum
public void setMinimum(java.lang.Double minimum)
-
setMaximum
public void setMaximum(java.lang.Double maximum)
-
setExclusiveMinimum
public void setExclusiveMinimum(java.lang.Boolean exclusiveMinimum)
-
setExclusiveMaximum
public void setExclusiveMaximum(java.lang.Boolean exclusiveMaximum)
-
setMinLength
public void setMinLength(java.lang.Integer minLength)
-
setMaxLength
public void setMaxLength(java.lang.Integer maxLength)
-
setPattern
public void setPattern(java.lang.String pattern)
-
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
-
setMinItems
public void setMinItems(java.lang.Integer minItems)
-
setMaxItems
public void setMaxItems(java.lang.Integer maxItems)
-
setUniqueItems
public void setUniqueItems(java.lang.Boolean uniqueItems)
-
setProtect
public void setProtect(boolean protect)
-
setReadOnly
public void setReadOnly(boolean isReadOnly)
-
-