Package com.adobe.aem.dermis.model
Interface ITypeAsset
-
- All Superinterfaces:
IAsset
,java.io.Serializable
- All Known Subinterfaces:
IConstraintAsset
,IOperationArgument
,IProperty
- All Known Implementing Classes:
ConstraintAsset
,Property
,RestProperty
,TypedAsset
,WSProperty
public interface ITypeAsset extends IAsset
Represent the type asset of property.
-
-
Method Summary
All Methods Instance Methods Abstract 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
setSubType(PropertyType subType)
void
setType(PropertyType type)
Sets the type of the Asset-
Methods inherited from interface com.adobe.aem.dermis.model.IAsset
getDescription, getId, getName, getTitle
-
-
-
-
Method Detail
-
getSubType
PropertyType getSubType()
Gets the sub type of the asset. Sub type would hold sense in case of type being object or array- Returns:
-
setSubType
void setSubType(PropertyType subType)
-
getType
PropertyType getType()
Gets the type of the Asset- Returns:
- this property's type.
-
setType
void setType(PropertyType type)
Sets the type of the Asset
-
getFormatType
PropertyFormatType getFormatType()
Gets the format type of the Asset- Returns:
- this property's type.
-
setFormatType
void setFormatType(PropertyFormatType type)
Sets the format type of the Asset
-
getTypeRef
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" }- Returns:
-
getSubTypeRef
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" } }- Returns:
-
getMediaBinaryEncoding
java.lang.String getMediaBinaryEncoding()
Gets the binary encoding for the media Example, could be base64- Returns:
-
getMediaType
java.lang.String getMediaType()
Gets the media type, as mime type Example, could be "image/png"- Returns:
-
-