public interface ContentTypeItem
ContentType
property or child element representing an underlying NodeType Child or Property Definition.
A ContentTypeItem name is always explicit, so no residual naming allowed. The underlying EffectiveNodeTypeItem (Child or Property) however may be a residual (relaxed) property or child node.
Within a ContentType its ContentTypeItem elements can be accessed by through ContentType.getItem(String)
,
or as map of property or child elements through ContentType.getProperties()
or ContentType.getChildren()
.
For a ContentType.isDerivedType()
both a property and child element may be defined by the same name, in which case only the
child element is accessible through the ContentType.getItem(String)
method (see also JCR-2.0 5.1.8).
In that case the property element by that name still can be accessed through ContentType.getProperties()
.
ItemDefinition
Modifier and Type | Method and Description |
---|---|
String |
getDefiningType() |
EffectiveNodeTypeItem |
getEffectiveNodeTypeItem() |
String |
getEffectiveType() |
Map<String,List<String>> |
getItemProperties() |
String |
getItemType()
Returns the type of this item, which may be a qualified name of a ContentType (Child) or an (enhanced variant) of a NodeType property type name.
|
List<EffectiveNodeTypeItem> |
getMultiTypes() |
String |
getName() |
List<String> |
getValidators() |
boolean |
isAutoCreated() |
boolean |
isDerivedItem() |
boolean |
isMandatory() |
boolean |
isMultiple() |
boolean |
isMultiTyped() |
boolean |
isOrdered() |
boolean |
isPrimaryItem()
Primary items are for instance used in imagesets to define the cms preview resource.
|
boolean |
isProperty() |
boolean |
isProtected() |
String getName()
ItemDefinition.getName()
String getDefiningType()
ItemDefinition.getDeclaringNodeType()
boolean isProperty()
getEffectiveNodeTypeItem()
boolean isDerivedItem()
String getItemType()
For a isDerivedItem()
the value from getEffectiveType()
will be returned.
String getEffectiveType()
EffectiveNodeTypeItem.getType()
for this item; in case of a isMultiTyped()
returning only the first item definition its typeEffectiveNodeTypeItem getEffectiveNodeTypeItem()
isMultiTyped()
returning only the first item definitionboolean isMultiTyped()
isDerivedItem()
getMultiTypes()
List<EffectiveNodeTypeItem> getMultiTypes()
isDerivedItem()
or an empty list otherwiseboolean isPrimaryItem()
boolean isMultiple()
PropertyDefinition.isMultiple()
,
NodeDefinition.allowsSameNameSiblings()
boolean isMandatory()
ItemDefinition.isMandatory()
boolean isAutoCreated()
ItemDefinition.isAutoCreated()
boolean isProtected()
ItemDefinition.isProtected()
boolean isOrdered()
isMultiple()
and supports ordering of its Property values or its same-name-sibling Child items.List<String> getValidators()
Copyright © 2012–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.