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 ofITypeAsset
Implements 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 PropertyFormatType
getFormatType()
Gets the format type of the Assetjava.lang.String
getMediaBinaryEncoding()
Gets the binary encoding for the media Example, could be base64java.lang.String
getMediaType()
Gets the media type, as mime type Example, could be "image/png"PropertyType
getSubType()
Gets the sub type of the asset.java.lang.String
getSubTypeRef()
Gets the type reference of the asset.PropertyType
getType()
Gets the type of the Assetjava.lang.String
getTypeRef()
Gets the type reference of the asset.void
setFormatType(PropertyFormatType type)
Sets the format type of the Assetvoid
setMediaBinaryEncoding(java.lang.String mediaBinaryEncoding)
void
setMediaType(java.lang.String mediaType)
void
setSubType(PropertyType subType)
void
setSubTypeRef(java.lang.String subTypeRef)
void
setType(PropertyType type)
Sets the type of the Assetvoid
setTypeRef(java.lang.String typeRef)
-
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:
getSubType
in interfaceITypeAsset
- Returns:
-
setSubType
public void setSubType(PropertyType subType)
- Specified by:
setSubType
in interfaceITypeAsset
-
getType
public PropertyType getType()
Gets the type of the Asset- Specified by:
getType
in interfaceITypeAsset
- Returns:
- this property's type.
-
setType
public void setType(PropertyType type)
Sets the type of the Asset- Specified by:
setType
in 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:
getTypeRef
in 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:
getSubTypeRef
in interfaceITypeAsset
- Returns:
-
setSubTypeRef
public void setSubTypeRef(java.lang.String subTypeRef)
-
getFormatType
public PropertyFormatType getFormatType()
Gets the format type of the Asset- Specified by:
getFormatType
in interfaceITypeAsset
- Returns:
- this property's type.
-
setFormatType
public void setFormatType(PropertyFormatType type)
Sets the format type of the Asset- Specified by:
setFormatType
in interfaceITypeAsset
-
getMediaBinaryEncoding
public java.lang.String getMediaBinaryEncoding()
Gets the binary encoding for the media Example, could be base64- Specified by:
getMediaBinaryEncoding
in interfaceITypeAsset
- Returns:
-
getMediaType
public java.lang.String getMediaType()
Gets the media type, as mime type Example, could be "image/png"- Specified by:
getMediaType
in interfaceITypeAsset
- Returns:
-
setMediaType
public void setMediaType(java.lang.String mediaType)
-
setMediaBinaryEncoding
public void setMediaBinaryEncoding(java.lang.String mediaBinaryEncoding)
-
-