Package com.adobe.aem.dermis.model
Class Schema
- java.lang.Object
-
- com.adobe.aem.dermis.model.AbstractAsset
-
- com.adobe.aem.dermis.model.Schema
-
public class Schema extends AbstractAsset implements ISchema
Represents a schema and it's metadata description. Schemas represent a collection ofDataModel
andOperation
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Schema()
Schema(java.lang.String name)
Schema(java.lang.String name, java.util.List<IDataModel> dataModels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get$schema()
IDataModel
getDataModelByName(java.lang.String dataModelName)
Convenience method for retrieving a DataModel by it's name.int
getDataModelCount()
Gets the number of datamodels that reside in this schema.java.lang.String[]
getDataModelNames()
Gets the names of the datamodels that reside in this Schema.java.util.List<IDataModel>
getDataModels()
/** Gets all datamodels in this Schema.java.lang.String[]
getOneOf()
java.util.List<IOperation>
getOperations()
void
set$schema(java.lang.String $schema)
void
setDataModels(java.util.List<IDataModel> dataModels)
void
setOneOf(java.lang.String[] oneOf)
void
setOperations(java.util.List<IOperation> operations)
-
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
-
Schema
public Schema()
-
Schema
public Schema(java.lang.String name)
-
Schema
public Schema(java.lang.String name, java.util.List<IDataModel> dataModels)
-
-
Method Detail
-
getOneOf
public java.lang.String[] getOneOf()
-
setOneOf
public void setOneOf(java.lang.String[] oneOf)
-
get$schema
public java.lang.String get$schema()
-
set$schema
public void set$schema(java.lang.String $schema)
-
getDataModels
public java.util.List<IDataModel> getDataModels()
/** Gets all datamodels in this Schema.- Specified by:
getDataModels
in interfaceISchema
- Returns:
- the datamodels that reside in the schema
-
setDataModels
public void setDataModels(java.util.List<IDataModel> dataModels)
-
getOperations
public java.util.List<IOperation> getOperations()
-
setOperations
public void setOperations(java.util.List<IOperation> operations)
-
getDataModelCount
public int getDataModelCount()
Gets the number of datamodels that reside in this schema.- Returns:
- the number of datamodels that reside in this schema.
-
getDataModelNames
public java.lang.String[] getDataModelNames()
Gets the names of the datamodels that reside in this Schema.- Returns:
- an array of DataModel names.
-
getDataModelByName
public IDataModel getDataModelByName(java.lang.String dataModelName)
Convenience method for retrieving a DataModel by it's name.- Parameters:
dataModelName
- the name of the DataModel to retrieve- Returns:
- the DataModel with the given name. Returns null if no such dataModel is found.
-
-