java.lang.Object
com.sun.xml.messaging.saaj.soap.name.NameImpl
All Implemented Interfaces:
Name

public class NameImpl extends Object implements Name
  • Field Details

  • Constructor Details

  • Method Details

    • convertToName

      public static Name convertToName(QName qname)
    • convertToQName

      public static QName convertToQName(Name name)
    • createFromUnqualifiedName

      public static NameImpl createFromUnqualifiedName(String name)
    • createFromTagName

      public static Name createFromTagName(String tagName)
    • createFromQualifiedName

      public static Name createFromQualifiedName(String qualifiedName, String uri)
    • createFromTagAndUri

      protected static Name createFromTagAndUri(String tagName, String uri)
    • getPrefixSeparatorIndex

      protected static int getPrefixSeparatorIndex(String qualifiedName)
    • getPrefixFromQualifiedName

      public static String getPrefixFromQualifiedName(String qualifiedName)
    • getLocalNameFromQualifiedName

      public static String getLocalNameFromQualifiedName(String qualifiedName)
    • getPrefixFromTagName

      public static String getPrefixFromTagName(String tagName)
    • getLocalNameFromTagName

      public static String getLocalNameFromTagName(String tagName)
    • isQualified

      public static boolean isQualified(String tagName)
    • create

      public static NameImpl create(String name, String prefix, String uri)
    • createQName

      public static String createQName(String prefix, String localName)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getLocalName

      public String getLocalName()
      Get the local name part of this XML Name.
      Specified by:
      getLocalName in interface Name
      Returns:
      a string for the local name.
    • getPrefix

      public String getPrefix()
      Returns the prefix associated with the namespace of the name.
      Specified by:
      getPrefix in interface Name
      Returns:
      the prefix as a string.
    • getURI

      public String getURI()
      Returns the URI associated of the namespace.
      Specified by:
      getURI in interface Name
      Returns:
      the uri as a string.
    • getQualifiedName

      public String getQualifiedName()
      Returns a String version of the name suitable for use in an XML document.
      Specified by:
      getQualifiedName in interface Name
      Returns:
      the namespace-qualified name as a string
    • createEnvelope1_1Name

      public static NameImpl createEnvelope1_1Name(String prefix)
      Create a name object for a SOAP1.1 Envelope.
      Parameters:
      prefix - prefix
      Returns:
      Envelope Name
    • createEnvelope1_2Name

      public static NameImpl createEnvelope1_2Name(String prefix)
      Create a name object for a SOAP1.2 Envelope.
      Parameters:
      prefix - prefix
      Returns:
      Envelope Name
    • createHeader1_1Name

      public static NameImpl createHeader1_1Name(String prefix)
      Create a name object for a SOAP1.1 Header.
      Parameters:
      prefix - prefix
      Returns:
      Header Name
    • createHeader1_2Name

      public static NameImpl createHeader1_2Name(String prefix)
      Create a name object for a SOAP1.2 Header.
      Parameters:
      prefix - prefix
      Returns:
      Header Name
    • createBody1_1Name

      public static NameImpl createBody1_1Name(String prefix)
      Create a name object for a SOAP1.1 Body.
      Parameters:
      prefix - prefix
      Returns:
      Body Name
    • createBody1_2Name

      public static NameImpl createBody1_2Name(String prefix)
      Create a name object for a SOAP1.2 Body.
      Parameters:
      prefix - prefix
      Returns:
      Body Name
    • createFault1_1Name

      public static NameImpl createFault1_1Name(String prefix)
      Create a name object for a SOAP1.1 Fault.
      Parameters:
      prefix - prefix
      Returns:
      Fault Name
    • createNotUnderstood1_2Name

      public static NameImpl createNotUnderstood1_2Name(String prefix)
      Create a name object for a SOAP1.2 NotUnderstood element.
      Parameters:
      prefix - prefix
      Returns:
      NotUnderstood Name
    • createUpgrade1_2Name

      public static NameImpl createUpgrade1_2Name(String prefix)
      Create a name object for a SOAP1.2 Upgrade element.
      Parameters:
      prefix - prefix
      Returns:
      Upgrade Name
    • createSupportedEnvelope1_2Name

      public static NameImpl createSupportedEnvelope1_2Name(String prefix)
      Create a name object for a SOAP1.2 SupportedEnvelope Upgrade element.
      Parameters:
      prefix - prefix
      Returns:
      Supported Envelope Name
    • createFault1_2Name

      public static NameImpl createFault1_2Name(String localName, String prefix)
      Create a name object for a SOAP1.2 Fault, Reason or Detail.
      Parameters:
      localName - Local Name of element
      prefix - prefix
      Returns:
      Fault Name
    • createCodeSubcode1_2Name

      public static NameImpl createCodeSubcode1_2Name(String prefix, String localName)
      Create a name object for a SOAP1.2 Fault/Code or Subcode.
      Parameters:
      prefix - prefix
      localName - Either "Code" or "Subcode"
      Returns:
      CodeSubcode Name
    • createDetail1_1Name

      public static NameImpl createDetail1_1Name()
      Create a name object for a SOAP1.1 Fault Detail.
      Returns:
      Detail Name
    • createDetail1_1Name

      public static NameImpl createDetail1_1Name(String prefix)
    • createFaultElement1_1Name

      public static NameImpl createFaultElement1_1Name(String localName)
    • createFaultElement1_1Name

      public static NameImpl createFaultElement1_1Name(String localName, String prefix)
    • createSOAP11Name

      public static NameImpl createSOAP11Name(String string)
    • createSOAP12Name

      public static NameImpl createSOAP12Name(String string)
    • createSOAP12Name

      public static NameImpl createSOAP12Name(String localName, String prefix)
    • createXmlName

      public static NameImpl createXmlName(String localName)
    • copyElementName

      public static Name copyElementName(Element element)