Package eu.xenit.alfred.api.properties
Class PropertyDefinition
java.lang.Object
eu.xenit.alfred.api.properties.PropertyDefinition
Datastructure that represents a property. name: The qname of the property. title description defaultValue dataType
multiValued: Whether a node with this can have multiple values. mandatory: Whether a node is required to have a value
for this property or not. enforced isProtected indexed: Information around the indexing with this property.
constraints: List of constraints of this property.
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyDefinition(QName name, QName container, String title, String description, String defaultValue, QName dataType, boolean multiValued, boolean mandatory, boolean enforced, boolean isProtected, PropertyIndexOptions indexed, List<PropertyConstraintDefinition> constraints) -
Method Summary
Modifier and TypeMethodDescriptiongetName()getTitle()booleanbooleanbooleanbooleanvoidsetConstraints(List<PropertyConstraintDefinition> constraints) voidsetContainer(QName container) voidsetDataType(QName dataType) voidsetDefaultValue(String defaultValue) voidsetDescription(String description) voidsetEnforced(boolean enforced) voidsetIndexed(PropertyIndexOptions indexed) voidsetIsProtected(boolean aProtected) voidsetMandatory(boolean mandatory) voidsetMultiValued(boolean multiValued) voidvoid
-
Constructor Details
-
PropertyDefinition
public PropertyDefinition() -
PropertyDefinition
public PropertyDefinition(QName name, QName container, String title, String description, String defaultValue, QName dataType, boolean multiValued, boolean mandatory, boolean enforced, boolean isProtected, PropertyIndexOptions indexed, List<PropertyConstraintDefinition> constraints)
-
-
Method Details
-
getName
-
setName
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getDefaultValue
-
setDefaultValue
-
getDataType
-
setDataType
-
isMultiValued
public boolean isMultiValued() -
setMultiValued
public void setMultiValued(boolean multiValued) -
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory(boolean mandatory) -
isEnforced
public boolean isEnforced() -
setEnforced
public void setEnforced(boolean enforced) -
isIsProtected
public boolean isIsProtected() -
setIsProtected
public void setIsProtected(boolean aProtected) -
getIndexed
-
setIndexed
-
getConstraints
-
setConstraints
-
getContainer
-
setContainer
-