com.sun.xml.messaging.saaj.soap.name
Class NameImpl

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

public class NameImpl
extends Object
implements javax.xml.soap.Name


Field Summary
protected  String localName
           
protected static Logger log
           
protected  String prefix
           
static String SOAP_ENVELOPE_PREFIX
           
static String SOAP11_NAMESPACE
           
static String SOAP12_NAMESPACE
           
protected  String uri
           
static String XML_NAMESPACE
           
static String XML_NAMESPACE_PREFIX
           
static String XML_SCHEMA_NAMESPACE
           
static String XML_SCHEMA_NAMESPACE_PREFIX
           
static String XMLNS_URI
          XML Information Set REC all namespace attributes (including those named xmlns, whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
 
Constructor Summary
protected NameImpl(String name)
           
protected NameImpl(String name, String prefix, String uri)
           
 
Method Summary
static javax.xml.soap.Name convertToName(QName qname)
           
static QName convertToQName(javax.xml.soap.Name name)
           
static javax.xml.soap.Name copyElementName(Element element)
           
static NameImpl create(String name, String prefix, String uri)
           
static NameImpl createBody1_1Name(String prefix)
          Create a name object for a SOAP1.1 Body.
static NameImpl createBody1_2Name(String prefix)
          Create a name object for a SOAP1.2 Body.
static NameImpl createCodeSubcode1_2Name(String prefix, String localName)
          Create a name object for a SOAP1.2 Fault/Code or Subcode.
static NameImpl createDetail1_1Name()
          Create a name object for a SOAP1.1 Fault Detail.
static NameImpl createDetail1_1Name(String prefix)
           
static NameImpl createEnvelope1_1Name(String prefix)
          Create a name object for a SOAP1.1 Envelope.
static NameImpl createEnvelope1_2Name(String prefix)
          Create a name object for a SOAP1.2 Envelope.
static NameImpl createFault1_1Name(String prefix)
          Create a name object for a SOAP1.1 Fault.
static NameImpl createFault1_2Name(String localName, String prefix)
          Create a name object for a SOAP1.2 Fault, Reason or Detail.
static NameImpl createFaultElement1_1Name(String localName)
           
static NameImpl createFaultElement1_1Name(String localName, String prefix)
           
static javax.xml.soap.Name createFromQualifiedName(String qualifiedName, String uri)
           
protected static javax.xml.soap.Name createFromTagAndUri(String tagName, String uri)
           
static javax.xml.soap.Name createFromTagName(String tagName)
           
static NameImpl createFromUnqualifiedName(String name)
           
static NameImpl createHeader1_1Name(String prefix)
          Create a name object for a SOAP1.1 Header.
static NameImpl createHeader1_2Name(String prefix)
          Create a name object for a SOAP1.2 Header.
static NameImpl createNotUnderstood1_2Name(String prefix)
          Create a name object for a SOAP1.2 NotUnderstood element.
static String createQName(String prefix, String localName)
           
static NameImpl createSOAP11Name(String string)
           
static NameImpl createSOAP12Name(String string)
           
static NameImpl createSOAP12Name(String localName, String prefix)
           
static NameImpl createSupportedEnvelope1_2Name(String prefix)
          Create a name object for a SOAP1.2 SupportedEnvelope Upgrade element.
static NameImpl createUpgrade1_2Name(String prefix)
          Create a name object for a SOAP1.2 Upgrade element.
static NameImpl createXmlName(String localName)
           
 boolean equals(Object obj)
           
 String getLocalName()
          Get the local name part of this XML Name.
static String getLocalNameFromQualifiedName(String qualifiedName)
           
static String getLocalNameFromTagName(String tagName)
           
 String getPrefix()
          Returns the prefix associated with the namespace of the name.
static String getPrefixFromQualifiedName(String qualifiedName)
           
static String getPrefixFromTagName(String tagName)
           
protected static int getPrefixSeparatorIndex(String qualifiedName)
           
 String getQualifiedName()
          Returns a String version of the name suitable for use in an XML document.
 String getURI()
          Returns the URI associated of the namespace.
static boolean isQualified(String tagName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NAMESPACE_PREFIX

public static final String XML_NAMESPACE_PREFIX
See Also:
Constant Field Values

XML_SCHEMA_NAMESPACE_PREFIX

public static final String XML_SCHEMA_NAMESPACE_PREFIX
See Also:
Constant Field Values

SOAP_ENVELOPE_PREFIX

public static final String SOAP_ENVELOPE_PREFIX
See Also:
Constant Field Values

XML_NAMESPACE

public static final String XML_NAMESPACE
See Also:
Constant Field Values

SOAP11_NAMESPACE

public static final String SOAP11_NAMESPACE
See Also:
Constant Field Values

SOAP12_NAMESPACE

public static final String SOAP12_NAMESPACE
See Also:
Constant Field Values

XML_SCHEMA_NAMESPACE

public static final String XML_SCHEMA_NAMESPACE
See Also:
Constant Field Values

uri

protected String uri

localName

protected String localName

prefix

protected String prefix

log

protected static final Logger log

XMLNS_URI

public static final String XMLNS_URI
XML Information Set REC all namespace attributes (including those named xmlns, whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/

Constructor Detail

NameImpl

protected NameImpl(String name)

NameImpl

protected NameImpl(String name,
                   String prefix,
                   String uri)
Method Detail

convertToName

public static javax.xml.soap.Name convertToName(QName qname)

convertToQName

public static QName convertToQName(javax.xml.soap.Name name)

createFromUnqualifiedName

public static NameImpl createFromUnqualifiedName(String name)

createFromTagName

public static javax.xml.soap.Name createFromTagName(String tagName)

createFromQualifiedName

public static javax.xml.soap.Name createFromQualifiedName(String qualifiedName,
                                                          String uri)

createFromTagAndUri

protected static javax.xml.soap.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

getLocalName

public String getLocalName()
Get the local name part of this XML Name.

Specified by:
getLocalName in interface javax.xml.soap.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 javax.xml.soap.Name
Returns:
the prefix as a string.

getURI

public String getURI()
Returns the URI associated of the namespace.

Specified by:
getURI in interface javax.xml.soap.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 javax.xml.soap.Name

createEnvelope1_1Name

public static NameImpl createEnvelope1_1Name(String prefix)
Create a name object for a SOAP1.1 Envelope.


createEnvelope1_2Name

public static NameImpl createEnvelope1_2Name(String prefix)
Create a name object for a SOAP1.2 Envelope.


createHeader1_1Name

public static NameImpl createHeader1_1Name(String prefix)
Create a name object for a SOAP1.1 Header.


createHeader1_2Name

public static NameImpl createHeader1_2Name(String prefix)
Create a name object for a SOAP1.2 Header.


createBody1_1Name

public static NameImpl createBody1_1Name(String prefix)
Create a name object for a SOAP1.1 Body.


createBody1_2Name

public static NameImpl createBody1_2Name(String prefix)
Create a name object for a SOAP1.2 Body.


createFault1_1Name

public static NameImpl createFault1_1Name(String prefix)
Create a name object for a SOAP1.1 Fault.


createNotUnderstood1_2Name

public static NameImpl createNotUnderstood1_2Name(String prefix)
Create a name object for a SOAP1.2 NotUnderstood element.


createUpgrade1_2Name

public static NameImpl createUpgrade1_2Name(String prefix)
Create a name object for a SOAP1.2 Upgrade element.


createSupportedEnvelope1_2Name

public static NameImpl createSupportedEnvelope1_2Name(String prefix)
Create a name object for a SOAP1.2 SupportedEnvelope Upgrade element.


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

createCodeSubcode1_2Name

public static NameImpl createCodeSubcode1_2Name(String prefix,
                                                String localName)
Create a name object for a SOAP1.2 Fault/Code or Subcode.

Parameters:
localName - Either "Code" or "Subcode"

createDetail1_1Name

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


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 javax.xml.soap.Name copyElementName(Element element)


Copyright © 2011 Oracle. All Rights Reserved.