Modifier and Type | Method and Description |
---|---|
void |
checkAddNodeConstraints(Name name) |
void |
checkAddNodeConstraints(Name name,
Name nodeTypeName,
NodeTypeRegistry ntReg) |
void |
checkRemoveItemConstraints(Name name) |
void |
checkRemoveNodeConstraints(Name name) |
void |
checkRemovePropertyConstraints(Name name) |
static void |
checkSetPropertyValueConstraints(QPropertyDefinition pd,
InternalValue[] values)
Tests if the value constraints defined in the property definition
pd are satisfied by the the specified values . |
protected Object |
clone() |
QItemDefinition[] |
getAllItemDefs() |
QNodeDefinition[] |
getAllNodeDefs() |
Name[] |
getAllNodeTypes() |
QPropertyDefinition[] |
getAllPropDefs() |
QNodeDefinition |
getApplicableChildNodeDef(Name name,
Name nodeTypeName,
NodeTypeRegistry ntReg)
Returns the applicable child node definition for a child node with the
specified name and node type.
|
QPropertyDefinition |
getApplicablePropertyDef(Name name,
int type)
Returns the applicable property definition for a property with the
specified name and type.
|
QPropertyDefinition |
getApplicablePropertyDef(Name name,
int type,
boolean multiValued)
Returns the applicable property definition for a property with the
specified name, type and multiValued characteristic.
|
QNodeDefinition[] |
getAutoCreateNodeDefs() |
QPropertyDefinition[] |
getAutoCreatePropDefs() |
Name[] |
getInheritedNodeTypes() |
QNodeDefinition[] |
getMandatoryNodeDefs() |
QPropertyDefinition[] |
getMandatoryPropDefs() |
Name[] |
getMergedNodeTypes() |
QItemDefinition[] |
getNamedItemDefs() |
QItemDefinition[] |
getNamedItemDefs(Name name) |
QNodeDefinition[] |
getNamedNodeDefs() |
QNodeDefinition[] |
getNamedNodeDefs(Name name) |
QPropertyDefinition[] |
getNamedPropDefs() |
QPropertyDefinition[] |
getNamedPropDefs(Name name) |
Name |
getPrimaryItemName() |
QItemDefinition[] |
getUnnamedItemDefs() |
QNodeDefinition[] |
getUnnamedNodeDefs() |
QPropertyDefinition[] |
getUnnamedPropDefs() |
boolean |
hasNamedItemDef(Name name) |
boolean |
hasOrderableChildNodes()
Returns true if any of the included node types supports
'orderable child nodes'; returns false otherwise.
|
boolean |
includesNodeType(Name nodeTypeName)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) the given node type.
|
boolean |
includesNodeTypes(Name[] nodeTypeNames)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) all of the given node types.
|
public boolean hasOrderableChildNodes()
true
if this effective node type has orderable child nodespublic Name getPrimaryItemName()
public Name[] getMergedNodeTypes()
public Name[] getInheritedNodeTypes()
public Name[] getAllNodeTypes()
public QItemDefinition[] getAllItemDefs()
public QItemDefinition[] getNamedItemDefs()
public QItemDefinition[] getUnnamedItemDefs()
public boolean hasNamedItemDef(Name name)
public QItemDefinition[] getNamedItemDefs(Name name)
public QNodeDefinition[] getAllNodeDefs()
public QNodeDefinition[] getNamedNodeDefs()
public QNodeDefinition[] getNamedNodeDefs(Name name)
public QNodeDefinition[] getUnnamedNodeDefs()
public QNodeDefinition[] getAutoCreateNodeDefs()
public QPropertyDefinition[] getAllPropDefs()
public QPropertyDefinition[] getNamedPropDefs()
public QPropertyDefinition[] getNamedPropDefs(Name name)
public QPropertyDefinition[] getUnnamedPropDefs()
public QPropertyDefinition[] getAutoCreatePropDefs()
public QPropertyDefinition[] getMandatoryPropDefs()
public QNodeDefinition[] getMandatoryNodeDefs()
public boolean includesNodeType(Name nodeTypeName)
nodeTypeName
- name of node typetrue
if the given node type is included, otherwise
false
public boolean includesNodeTypes(Name[] nodeTypeNames)
nodeTypeNames
- array of node type namestrue
if all of the given node types are included,
otherwise false
public static void checkSetPropertyValueConstraints(QPropertyDefinition pd, InternalValue[] values) throws ConstraintViolationException, RepositoryException
pd
are satisfied by the the specified values
.
Note that the protected flag is not checked. Also note that no type conversions are attempted if the type of the given values does not match the required type as specified in the given definition.
pd
- The definiton of the propertyvalues
- An array of InternalValue
objects.ConstraintViolationException
- if the value constraints defined in
the property definition are satisfied
by the the specified valuesRepositoryException
- if another error occurspublic void checkAddNodeConstraints(Name name) throws ConstraintViolationException
name
- ConstraintViolationException
public void checkAddNodeConstraints(Name name, Name nodeTypeName, NodeTypeRegistry ntReg) throws ConstraintViolationException, NoSuchNodeTypeException
name
- nodeTypeName
- ntReg
- ConstraintViolationException
NoSuchNodeTypeException
public QNodeDefinition getApplicableChildNodeDef(Name name, Name nodeTypeName, NodeTypeRegistry ntReg) throws NoSuchNodeTypeException, ConstraintViolationException
name
- nodeTypeName
- ntReg
- NoSuchNodeTypeException
ConstraintViolationException
- if no applicable child node definition
could be foundpublic QPropertyDefinition getApplicablePropertyDef(Name name, int type, boolean multiValued) throws ConstraintViolationException
name
- type
- multiValued
- ConstraintViolationException
- if no applicable property definition
could be foundpublic QPropertyDefinition getApplicablePropertyDef(Name name, int type) throws ConstraintViolationException
getApplicablePropertyDef(Name, int, boolean)
this method does not take the multiValued flag into account in the
selection algorithm. If there more than one applicable definitions then
the following rules are applied:
name
- type
- ConstraintViolationException
- if no applicable property definition
could be foundpublic void checkRemoveItemConstraints(Name name) throws ConstraintViolationException
name
- ConstraintViolationException
public void checkRemoveNodeConstraints(Name name) throws ConstraintViolationException
name
- ConstraintViolationException
public void checkRemovePropertyConstraints(Name name) throws ConstraintViolationException
name
- ConstraintViolationException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.