Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface PropertyDefinitionTemplate extends PropertyDefinition
PropertyDefinitionTemplate
interface extends
PropertyDefinition
with the addition of write methods, enabling
the characteristics of a child property definition to be set, after which the
PropertyDefinitionTemplate
is added to a
NodeTypeTemplate
.
See the corresponding get
methods for each attribute in
PropertyDefinition
for the default values assumed when a new
empty PropertyDefinitionTemplate
is created (as opposed to one
extracted from an existing NodeType
).
Sitevision note: Unsupported operation
Modifier and Type | Method and Description |
---|---|
void |
setAutoCreated(boolean autoCreated)
Sets the auto-create status of the property.
|
void |
setAvailableQueryOperators(String[] operators)
Sets the queryable status of the property.
|
void |
setDefaultValues(Value[] defaultValues)
Sets the default value (or values, in the case of a multi-value property)
of the property.
|
void |
setFullTextSearchable(boolean fullTextSearchable)
Sets the full-text-searchable status of the property.
|
void |
setMandatory(boolean mandatory)
Sets the mandatory status of the property.
|
void |
setMultiple(boolean multiple)
Sets the multi-value status of the property.
|
void |
setName(String name)
Sets the name of the property.
|
void |
setOnParentVersion(int opv)
Sets the on-parent-version status of the property.
|
void |
setProtected(boolean protectedStatus)
Sets the protected status of the property.
|
void |
setQueryOrderable(boolean queryOrderable)
Sets the query-orderable status of the property.
|
void |
setRequiredType(int type)
Sets the required type of the property.
|
void |
setValueConstraints(String[] constraints)
Sets the value constraints of the property.
|
getAvailableQueryOperators, getDefaultValues, getRequiredType, getValueConstraints, isFullTextSearchable, isMultiple, isQueryOrderable
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
void setName(String name) throws ConstraintViolationException
name
- a JCR name.ConstraintViolationException
- if name
is not a
syntactically valid JCR name in either qualified or expanded form.void setAutoCreated(boolean autoCreated)
autoCreated
- a boolean
.void setMandatory(boolean mandatory)
mandatory
- a boolean
.void setOnParentVersion(int opv)
opv
- an int
constant member of
OnParentVersionAction
.void setProtected(boolean protectedStatus)
protectedStatus
- a boolean
.void setRequiredType(int type)
type
- an int
constant member of
PropertyType
.void setValueConstraints(String[] constraints)
constraints
- a String
array.void setDefaultValues(Value[] defaultValues)
defaultValues
- a Value
array.void setMultiple(boolean multiple)
multiple
- a boolean
.void setAvailableQueryOperators(String[] operators)
operators
- an array of String constants. See PropertyDefinition.getAvailableQueryOperators()
.void setFullTextSearchable(boolean fullTextSearchable)
fullTextSearchable
- a boolean
.void setQueryOrderable(boolean queryOrderable)
queryOrderable
- a boolean
.Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.