org.apache.jackrabbit.core.nodetype
Class PropertyDefinitionImpl

java.lang.Object
  extended byorg.apache.jackrabbit.core.nodetype.ItemDefinitionImpl
      extended byorg.apache.jackrabbit.core.nodetype.PropertyDefinitionImpl
All Implemented Interfaces:
ItemDefinition, PropertyDefinition

public class PropertyDefinitionImpl
extends org.apache.jackrabbit.core.nodetype.ItemDefinitionImpl
implements PropertyDefinition

This class implements the PropertyDefinition interface. All method calls are delegated to the wrapped PropDef, performing the translation from QNames to JCR names (and vice versa) where necessary.


Field Summary
protected static String ANY_NAME
          Literal for 'any name'.
protected  ItemDef itemDef
          The wrapped item definition.
protected  NamespaceResolver nsResolver
          The namespace resolver used to translate qualified names to JCR names.
protected  NodeTypeManagerImpl ntMgr
          The node type manager of this session.
 
Method Summary
 boolean definesResidual()
          Checks whether this is a residual item definition.
 boolean equals(Object o)
          
 NodeType getDeclaringNodeType()
          
 Value[] getDefaultValues()
          
 String getName()
          
 int getOnParentVersion()
          
 QName getQName()
          Gets the QName of the child item.
 int getRequiredType()
          
 String[] getValueConstraints()
          
 int hashCode()
          
 boolean isAutoCreated()
          
 boolean isMandatory()
          
 boolean isMultiple()
          
 boolean isProtected()
          
 PropDef unwrap()
          Returns the wrapped property definition.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.nodetype.ItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Field Detail

ANY_NAME

protected static final String ANY_NAME
Literal for 'any name'.

See Also:
Constant Field Values

ntMgr

protected final NodeTypeManagerImpl ntMgr
The node type manager of this session.


nsResolver

protected final NamespaceResolver nsResolver
The namespace resolver used to translate qualified names to JCR names.


itemDef

protected final ItemDef itemDef
The wrapped item definition.

Method Detail

unwrap

public PropDef unwrap()
Returns the wrapped property definition.

Returns:
the wrapped property definition.

getDefaultValues

public Value[] getDefaultValues()

Specified by:
getDefaultValues in interface PropertyDefinition

getRequiredType

public int getRequiredType()

Specified by:
getRequiredType in interface PropertyDefinition

getValueConstraints

public String[] getValueConstraints()

Specified by:
getValueConstraints in interface PropertyDefinition

isMultiple

public boolean isMultiple()

Specified by:
isMultiple in interface PropertyDefinition

definesResidual

public boolean definesResidual()
Checks whether this is a residual item definition.

Returns:
true if this is a residual item definition

getQName

public QName getQName()
Gets the QName of the child item. It is an error to call this method if this is a residual item definition.

Returns:
the QName of the child item.
See Also:
ItemDefinitionImpl.getName()

getDeclaringNodeType

public NodeType getDeclaringNodeType()

Specified by:
getDeclaringNodeType in interface ItemDefinition

getName

public String getName()

Specified by:
getName in interface ItemDefinition

getOnParentVersion

public int getOnParentVersion()

Specified by:
getOnParentVersion in interface ItemDefinition

isAutoCreated

public boolean isAutoCreated()

Specified by:
isAutoCreated in interface ItemDefinition

isMandatory

public boolean isMandatory()

Specified by:
isMandatory in interface ItemDefinition

isProtected

public boolean isProtected()

Specified by:
isProtected in interface ItemDefinition

equals

public boolean equals(Object o)


hashCode

public int hashCode()



Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.