org.apache.jackrabbit.spi.commons.nodetype.compact
Class QNodeTypeDefinitionsBuilderImpl.QPropertyDefinitionBuilderImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.nodetype.compact.QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
org.apache.jackrabbit.spi.commons.nodetype.compact.QNodeTypeDefinitionsBuilderImpl.QPropertyDefinitionBuilderImpl
- Enclosing class:
- QNodeTypeDefinitionsBuilderImpl
public class QNodeTypeDefinitionsBuilderImpl.QPropertyDefinitionBuilderImpl
- extends QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
Default implementation of a QPropertyDefinitionBuilder.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNodeTypeDefinitionsBuilderImpl.QPropertyDefinitionBuilderImpl
public QNodeTypeDefinitionsBuilderImpl.QPropertyDefinitionBuilderImpl()
createValue
public QValue createValue(String value,
NamePathResolver resolver)
throws ValueFormatException,
RepositoryException
- Description copied from class:
QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
- Create a new
QValue for value of the type this instance
represents using the given resolver.
- Specified by:
createValue in class QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
- Returns:
- a new
QValue.
- Throws:
ValueFormatException - If the given value cannot be converted to the
specified type.
RepositoryException - If another error occurs.
createValueConstraint
public String createValueConstraint(String constraint,
NamePathResolver resolver)
throws InvalidConstraintException
- Description copied from class:
QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
- Validate the given
constraint and resolve any prefixes.
- Specified by:
createValueConstraint in class QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
- Returns:
- A syntactically valid value constrained which refers to fully qualified names and
paths only.
- Throws:
InvalidConstraintException - if constraint cannot be converted to a
valid value constrained.
build
public QPropertyDefinition build()
- Description copied from class:
QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
- Creates a new
QPropertyDefinition instance based on the state of this builder.
- Specified by:
build in class QNodeTypeDefinitionsBuilder.QPropertyDefinitionBuilder
- Returns:
- a new
QPropertyDefinition instance.
setName
public void setName(Name name)
- Parameters:
name - the name of the child item definition being build
getName
public Name getName()
- Returns:
- the name of the child item definition being build.
setDeclaringNodeType
public void setDeclaringNodeType(Name type)
- Parameters:
type - the name of the declaring node type.
getDeclaringNodeType
public Name getDeclaringNodeType()
- Returns:
- the name of the declaring node type.
setAutoCreated
public void setAutoCreated(boolean autocreate)
- Parameters:
autocreate - true if building a 'autocreate' child item definition, false otherwise.
getAutoCreated
public boolean getAutoCreated()
- Returns:
- true if building a 'autocreate' child item definition, false otherwise.
setOnParentVersion
public void setOnParentVersion(int onParent)
- Parameters:
onParent - the 'onParentVersion' attribute of the child item definition being built
getOnParentVersion
public int getOnParentVersion()
- Returns:
- the 'onParentVersion' attribute of the child item definition being built
setProtected
public void setProtected(boolean isProtected)
- Parameters:
isProtected - true if building a 'protected' child item definition, false otherwise.
getProtected
public boolean getProtected()
- Returns:
- true if building a 'protected' child item definition, false otherwise.
setMandatory
public void setMandatory(boolean isMandatory)
- Parameters:
isMandatory - true if building a 'mandatory' child item definition, false otherwise.
getMandatory
public boolean getMandatory()
- Returns:
- true if building a 'mandatory' child item definition, false otherwise.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.