Package org.alfresco.rest.api.model
Class CustomModel
- java.lang.Object
-
- org.alfresco.rest.api.model.CustomModel
-
- All Implemented Interfaces:
Comparable<CustomModel>
public class CustomModel extends Object implements Comparable<CustomModel>
- Author:
- Jamal Kaabi-Mofrad
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CustomModel.ModelStatus
-
Constructor Summary
Constructors Constructor Description CustomModel()
CustomModel(org.alfresco.service.cmr.dictionary.CustomModelDefinition modelDefinition)
CustomModel(org.alfresco.service.cmr.dictionary.CustomModelDefinition modelDefinition, List<CustomType> types, List<CustomAspect> aspects, List<CustomModelConstraint> constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CustomModel customModel)
boolean
equals(Object obj)
List<CustomAspect>
getAspects()
String
getAuthor()
List<CustomModelConstraint>
getConstraints()
String
getDescription()
String
getName()
String
getNamespacePrefix()
String
getNamespaceUri()
CustomModel.ModelStatus
getStatus()
List<CustomType>
getTypes()
int
hashCode()
void
setAspects(List<CustomAspect> aspects)
void
setAuthor(String author)
void
setConstraints(List<CustomModelConstraint> constraints)
void
setDescription(String description)
void
setName(String name)
void
setNamespacePrefix(String namespacePrefix)
void
setNamespaceUri(String namespaceUri)
void
setStatus(CustomModel.ModelStatus status)
void
setTypes(List<CustomType> types)
String
toString()
-
-
-
Constructor Detail
-
CustomModel
public CustomModel()
-
CustomModel
public CustomModel(org.alfresco.service.cmr.dictionary.CustomModelDefinition modelDefinition)
-
CustomModel
public CustomModel(org.alfresco.service.cmr.dictionary.CustomModelDefinition modelDefinition, List<CustomType> types, List<CustomAspect> aspects, List<CustomModelConstraint> constraints)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getAuthor
public String getAuthor()
-
setAuthor
public void setAuthor(String author)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getStatus
public CustomModel.ModelStatus getStatus()
-
setStatus
public void setStatus(CustomModel.ModelStatus status)
-
getNamespaceUri
public String getNamespaceUri()
-
setNamespaceUri
public void setNamespaceUri(String namespaceUri)
-
getNamespacePrefix
public String getNamespacePrefix()
-
setNamespacePrefix
public void setNamespacePrefix(String namespacePrefix)
-
getTypes
public List<CustomType> getTypes()
-
setTypes
public void setTypes(List<CustomType> types)
-
getAspects
public List<CustomAspect> getAspects()
-
setAspects
public void setAspects(List<CustomAspect> aspects)
-
getConstraints
public List<CustomModelConstraint> getConstraints()
-
setConstraints
public void setConstraints(List<CustomModelConstraint> constraints)
-
compareTo
public int compareTo(CustomModel customModel)
- Specified by:
compareTo
in interfaceComparable<CustomModel>
-
-