org.apache.jackrabbit.commons.cnd
Class TemplateBuilderFactory.PropertyDefinitionTemplateBuilder
java.lang.Object
org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
org.apache.jackrabbit.commons.cnd.TemplateBuilderFactory.PropertyDefinitionTemplateBuilder
- Enclosing class:
- TemplateBuilderFactory
public class TemplateBuilderFactory.PropertyDefinitionTemplateBuilder
- extends DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateBuilderFactory.PropertyDefinitionTemplateBuilder
public TemplateBuilderFactory.PropertyDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd)
throws UnsupportedRepositoryOperationException,
RepositoryException
- Throws:
UnsupportedRepositoryOperationException
RepositoryException
setName
public void setName(String name)
throws RepositoryException
- Overrides:
setName
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
- Parameters:
name
- the name of the child item definition being build
- Throws:
RepositoryException
- See Also:
ItemDefinition.getName()
addDefaultValues
public void addDefaultValues(String value)
throws ValueFormatException
- Specified by:
addDefaultValues
in class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
- Parameters:
value
- add a default value to the list of default values of the property definition
being built.
- Throws:
ValueFormatException
- See Also:
PropertyDefinition.getDefaultValues()
addValueConstraint
public void addValueConstraint(String constraint)
- Specified by:
addValueConstraint
in class DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate>
- Parameters:
constraint
- add a value constraint to the list of value constraints of the property
definition being built.- See Also:
PropertyDefinition.getValueConstraints()
setDeclaringNodeType
public void setDeclaringNodeType(String name)
- Specified by:
setDeclaringNodeType
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
- Parameters:
name
- the name of the declaring node type.- See Also:
ItemDefinition.getDeclaringNodeType()
build
public void build()
throws IllegalStateException
- Description copied from class:
DefinitionBuilderFactory.AbstractItemDefinitionBuilder
- Build this item definition an add it to its parent node type definition
- Specified by:
build
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
- Throws:
IllegalStateException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.