org.alfresco.service.cmr.repository
Class Path.AttributeElement

java.lang.Object
  extended by org.alfresco.service.cmr.repository.Path.Element
      extended by org.alfresco.service.cmr.repository.Path.AttributeElement
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Path

public static class Path.AttributeElement
extends Path.Element

Represents a qualified path to an attribute, including the sibling for repeated properties/attributes to retrieve e.g. /@{namespace}name[5]

See Also:
Serialized Form

Constructor Summary
Path.AttributeElement(QName attribute)
           
Path.AttributeElement(QName attribute, int position)
           
Path.AttributeElement(java.lang.String attribute)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getElementString()
           
 java.lang.String getPrefixedString(NamespacePrefixResolver resolver)
           
 QName getQName()
           
 int hashCode()
           
 int position()
           
 
Methods inherited from class org.alfresco.service.cmr.repository.Path.Element
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path.AttributeElement

public Path.AttributeElement(QName attribute)
Parameters:
ref - a reference to the specific parent-child association

Path.AttributeElement

public Path.AttributeElement(QName attribute,
                             int position)

Path.AttributeElement

public Path.AttributeElement(java.lang.String attribute)
Method Detail

getElementString

public java.lang.String getElementString()
Specified by:
getElementString in class Path.Element
Returns:
Returns the path element portion including leading '/' and never null

getPrefixedString

public java.lang.String getPrefixedString(NamespacePrefixResolver resolver)
Overrides:
getPrefixedString in class Path.Element
Parameters:
resolver - namespace prefix resolver
Returns:
the path element portion (with namespaces converted to prefixes)

getQName

public QName getQName()

position

public int position()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.