Package com.adobe.aem.dermis.model
Class TypedAsset
- java.lang.Object
-
- com.adobe.aem.dermis.model.AbstractAsset
-
- com.adobe.aem.dermis.model.TypedAsset
-
- All Implemented Interfaces:
IAsset,ITypeAsset,java.io.Serializable
- Direct Known Subclasses:
ConstraintAsset
public abstract class TypedAsset extends AbstractAsset implements ITypeAsset
Abstract implementation ofITypeAssetImplements most common and trivial methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypedAsset()TypedAsset(java.lang.String name, java.lang.String description)TypedAsset(java.lang.String name, java.lang.String description, PropertyType type)TypedAsset(java.lang.String name, java.lang.String description, PropertyType type, PropertyFormatType formatType)TypedAsset(java.lang.String name, java.lang.String description, PropertyType type, PropertyType subType)TypedAsset(java.lang.String name, java.lang.String description, PropertyType type, java.lang.String subTypeRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyFormatTypegetFormatType()Gets the format type of the Assetjava.lang.StringgetMediaBinaryEncoding()Gets the binary encoding for the media Example, could be base64java.lang.StringgetMediaType()Gets the media type, as mime type Example, could be "image/png"java.lang.StringgetSourceType()PropertyTypegetSubType()Gets the sub type of the asset.java.lang.StringgetSubTypeRef()Gets the type reference of the asset.java.lang.StringgetSubTypeRefChildKey()java.lang.StringgetSubTypeRefParentKey()PropertyTypegetType()Gets the type of the Assetjava.lang.StringgetTypeRef()Gets the type reference of the asset.java.lang.StringgetTypeRefChildKey()java.lang.StringgetTypeRefParentKey()voidsetFormatType(PropertyFormatType type)Sets the format type of the AssetvoidsetMediaBinaryEncoding(java.lang.String mediaBinaryEncoding)voidsetMediaType(java.lang.String mediaType)voidsetSourceType(java.lang.String sourceType)voidsetSubType(PropertyType subType)voidsetSubTypeRef(java.lang.String subTypeRef)voidsetSubTypeRefChildKey(java.lang.String subTypeRefChildKey)voidsetSubTypeRefParentKey(java.lang.String subTypeRefParentKey)voidsetType(PropertyType type)Sets the type of the AssetvoidsetTypeRef(java.lang.String typeRef)voidsetTypeRefChildKey(java.lang.String typeRefChildKey)voidsetTypeRefParentKey(java.lang.String typeRefParentKey)-
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
-
-
-
-
Constructor Detail
-
TypedAsset
public TypedAsset()
-
TypedAsset
public TypedAsset(java.lang.String name, java.lang.String description)
-
TypedAsset
public TypedAsset(java.lang.String name, java.lang.String description, PropertyType type)
-
TypedAsset
public TypedAsset(java.lang.String name, java.lang.String description, PropertyType type, PropertyFormatType formatType)
-
TypedAsset
public TypedAsset(java.lang.String name, java.lang.String description, PropertyType type, PropertyType subType)
-
TypedAsset
public TypedAsset(java.lang.String name, java.lang.String description, PropertyType type, java.lang.String subTypeRef)
-
-
Method Detail
-
getSubType
public PropertyType getSubType()
Gets the sub type of the asset. Sub type would hold sense in case of type being object or array- Specified by:
getSubTypein interfaceITypeAsset- Returns:
-
setSubType
public void setSubType(PropertyType subType)
- Specified by:
setSubTypein interfaceITypeAsset
-
getType
public PropertyType getType()
Gets the type of the Asset- Specified by:
getTypein interfaceITypeAsset- Returns:
- this property's type.
-
setType
public void setType(PropertyType type)
Sets the type of the Asset- Specified by:
setTypein interfaceITypeAsset
-
getTypeRef
public java.lang.String getTypeRef()
Gets the type reference of the asset. In some cases property may be directly $ref instant of type Example "customer" : { "$ref" : "customer" }- Specified by:
getTypeRefin interfaceITypeAsset- Returns:
-
setTypeRef
public void setTypeRef(java.lang.String typeRef)
-
getSubTypeRef
public java.lang.String getSubTypeRef()
Gets the type reference of the asset. In some cases property may be directly $ref instant of type Example "account" : { "type" : "array", "items" : { "$ref" : "account" } }- Specified by:
getSubTypeRefin interfaceITypeAsset- Returns:
-
setSubTypeRef
public void setSubTypeRef(java.lang.String subTypeRef)
-
getFormatType
public PropertyFormatType getFormatType()
Gets the format type of the Asset- Specified by:
getFormatTypein interfaceITypeAsset- Returns:
- this property's type.
-
setFormatType
public void setFormatType(PropertyFormatType type)
Sets the format type of the Asset- Specified by:
setFormatTypein interfaceITypeAsset
-
getMediaBinaryEncoding
public java.lang.String getMediaBinaryEncoding()
Gets the binary encoding for the media Example, could be base64- Specified by:
getMediaBinaryEncodingin interfaceITypeAsset- Returns:
-
getMediaType
public java.lang.String getMediaType()
Gets the media type, as mime type Example, could be "image/png"- Specified by:
getMediaTypein interfaceITypeAsset- Returns:
-
setMediaType
public void setMediaType(java.lang.String mediaType)
-
setMediaBinaryEncoding
public void setMediaBinaryEncoding(java.lang.String mediaBinaryEncoding)
-
getSourceType
public java.lang.String getSourceType()
-
setSourceType
public void setSourceType(java.lang.String sourceType)
-
getSubTypeRefParentKey
public java.lang.String getSubTypeRefParentKey()
-
setSubTypeRefParentKey
public void setSubTypeRefParentKey(java.lang.String subTypeRefParentKey)
-
getSubTypeRefChildKey
public java.lang.String getSubTypeRefChildKey()
-
setSubTypeRefChildKey
public void setSubTypeRefChildKey(java.lang.String subTypeRefChildKey)
-
getTypeRefParentKey
public java.lang.String getTypeRefParentKey()
-
setTypeRefParentKey
public void setTypeRefParentKey(java.lang.String typeRefParentKey)
-
getTypeRefChildKey
public java.lang.String getTypeRefChildKey()
-
setTypeRefChildKey
public void setTypeRefChildKey(java.lang.String typeRefChildKey)
-
-