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.StringgetDefaultValue()Gets the default of this string property.java.lang.BooleangetExclusiveMaximum()Gets the exclusive maximum of this numeric property.java.lang.BooleangetExclusiveMinimum()Gets the exclusive minimum of this numeric property.java.lang.DoublegetMaximum()Gets the maximum of this numeric property.java.lang.IntegergetMaxItems()Gets the max items of this array property.java.lang.IntegergetMaxLength()Gets the max length of this string property.java.lang.DoublegetMinimum()Gets the minimum of this numeric property.java.lang.IntegergetMinItems()Gets the min items of this array property.java.lang.IntegergetMinLength()Gets the min length of this string property.java.lang.StringgetPattern()Gets the pattern of this string property.booleangetProtect()Returns whether this property is protected or notjava.lang.BooleangetUniqueItems()Gets the unique items of this array property.booleanisReadOnly()Returns whether this property is read only or notvoidsetDefaultValue(java.lang.String defaultValue)voidsetExclusiveMaximum(java.lang.Boolean exclusiveMaximum)voidsetExclusiveMinimum(java.lang.Boolean exclusiveMinimum)voidsetMaximum(java.lang.Double maximum)voidsetMaxItems(java.lang.Integer maxItems)voidsetMaxLength(java.lang.Integer maxLength)voidsetMinimum(java.lang.Double minimum)voidsetMinItems(java.lang.Integer minItems)voidsetMinLength(java.lang.Integer minLength)voidsetPattern(java.lang.String pattern)voidsetProtect(boolean protect)voidsetReadOnly(boolean isReadOnly)voidsetUniqueItems(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:
getMinimumin interfaceIConstraintAsset- Returns:
- the minimum of this numeric property
-
getMaximum
public java.lang.Double getMaximum()
Gets the maximum of this numeric property.- Specified by:
getMaximumin interfaceIConstraintAsset- Returns:
- the maximum of this numeric property
-
getExclusiveMinimum
public java.lang.Boolean getExclusiveMinimum()
Gets the exclusive minimum of this numeric property.- Specified by:
getExclusiveMinimumin 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:
getExclusiveMaximumin 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:
getMinLengthin 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:
getMaxLengthin interfaceIConstraintAsset- Returns:
- the max length of this string property
-
getPattern
public java.lang.String getPattern()
Gets the pattern of this string property.- Specified by:
getPatternin interfaceIConstraintAsset- Returns:
- the pattern of this string property
-
getDefaultValue
public java.lang.String getDefaultValue()
Gets the default of this string property.- Specified by:
getDefaultValuein interfaceIConstraintAsset- Returns:
- the default of this string property
-
getMinItems
public java.lang.Integer getMinItems()
Gets the min items of this array property.- Specified by:
getMinItemsin 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:
getMaxItemsin 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:
getUniqueItemsin interfaceIConstraintAsset- Returns:
- the unique items of this array property
-
getProtect
public boolean getProtect()
Returns whether this property is protected or not- Specified by:
getProtectin interfaceIConstraintAsset- Returns:
-
isReadOnly
public boolean isReadOnly()
Returns whether this property is read only or not- Specified by:
isReadOnlyin 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)
-
-