Class Path.AttributeElement
- java.lang.Object
-
- org.alfresco.service.cmr.repository.Path.Element
-
- org.alfresco.service.cmr.repository.Path.AttributeElement
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Path
@AlfrescoPublicApi 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
Constructors Constructor Description AttributeElement(java.lang.String attribute)
AttributeElement(QName attribute)
AttributeElement(QName attribute, int position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Path.Element
getBaseNameElement(TenantService tenantService)
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
-
-
-
-
Method Detail
-
getElementString
public java.lang.String getElementString()
- Specified by:
getElementString
in classPath.Element
- Returns:
- Returns the path element portion including leading '/' and never null
-
getPrefixedString
public java.lang.String getPrefixedString(NamespacePrefixResolver resolver)
- Overrides:
getPrefixedString
in classPath.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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getBaseNameElement
public Path.Element getBaseNameElement(TenantService tenantService)
- Specified by:
getBaseNameElement
in classPath.Element
- Parameters:
tenantService
- TenantService- Returns:
- Element
-
-