org.apache.axiom.om
Interface OMNamedInformationItem

All Superinterfaces:
OMInformationItem
All Known Subinterfaces:
OMAttribute, OMElement, OMElementEx, OMSourcedElement, SOAPBody, SOAPEnvelope, SOAPFault, SOAPFaultClassifier, SOAPFaultCode, SOAPFaultDetail, SOAPFaultNode, SOAPFaultReason, SOAPFaultRole, SOAPFaultSubCode, SOAPFaultText, SOAPFaultValue, SOAPHeader, SOAPHeaderBlock

public interface OMNamedInformationItem
extends OMInformationItem

Represents an information item that has a name, more precisely a namespace URI, a local name and a prefix. This applies to elements and attributes.


Method Summary
 String getLocalName()
          Get the local name of the information item.
 OMNamespace getNamespace()
          Get the namespace this information item is part of.
 String getNamespaceURI()
          Get the namespace URI of this information item.
 String getPrefix()
          Get the prefix of this information item.
 QName getQName()
          Get the QName of this information item.
 void setLocalName(String localName)
          Set the local name of this information item.
 
Methods inherited from interface org.apache.axiom.om.OMInformationItem
clone, getOMFactory
 

Method Detail

getLocalName

String getLocalName()
Get the local name of the information item.

Returns:
the local name of the information item

setLocalName

void setLocalName(String localName)
Set the local name of this information item.

Parameters:
localName - the new local name of the information item

getNamespace

OMNamespace getNamespace()
Get the namespace this information item is part of.

Returns:
The namespace of this information item, or null if the information item has no namespace. Note that this implies that the method never returns an OMNamespace object with both prefix and namespace URI set to the empty string. In addition, the prefix of the returned OMNamespace object (if any) is never null: if a null prefix was specified when creating this information item, then a prefix has been automatically assigned and the assigned prefix is returned.

getQName

QName getQName()
Get the QName of this information item.

Returns:
the QName for the information item

getPrefix

String getPrefix()
Get the prefix of this information item. Note that the contract of this method is identical to DOM's Node.getPrefix() (when called on an Element or Attr).

Returns:
the prefix of the information item or null if the information item has no prefix

getNamespaceURI

String getNamespaceURI()
Get the namespace URI of this information item. Note that the contract of this method is identical to DOM's Node.getNamespaceURI() (when called on an Element or Attr).

Returns:
the namespace URI of the information item or null if the information item has no namespace


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