Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.schema.types
Class QName

java.lang.Object
  extended by org.nuxeo.ecm.core.schema.types.QName
All Implemented Interfaces:
Serializable

public class QName
extends Object
implements Serializable

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
QName(String localName)
          Creates a QName without prefix (e.g.
QName(String localName, String prefix)
          Creates a QName having the given local name and prefix.
 
Method Summary
 boolean equals(Object obj)
           
 String getLocalName()
           
 String getPrefix()
           
 String getPrefixedName()
           
 int hashCode()
           
 String toString()
           
static QName valueOf(String name)
          Parses the given name and creates the corresponding QName.
static QName valueOf(String name, String prefix)
          Parses the given name and create the corresponding QName.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QName

public QName(String localName)
Creates a QName without prefix (e.g. with the default prefix : "").

Parameters:
localName - the local name

QName

public QName(String localName,
             String prefix)
Creates a QName having the given local name and prefix.

Parameters:
localName -
prefix -
Method Detail

getLocalName

public final String getLocalName()

getPrefixedName

public final String getPrefixedName()

getPrefix

public final String getPrefix()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

equals

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

valueOf

public static QName valueOf(String name)
Parses the given name and creates the corresponding QName.

If the given name is not prefixed then the default prefix (e.g. "") will be used (i.e. the name will remain unprefixed).

Parameters:
name - the name in the prefixed form
Returns:
the qname

valueOf

public static QName valueOf(String name,
                            String prefix)
Parses the given name and create the corresponding QName.

If the given name is not prefixed then the given prefix will be used.

Parameters:
name -
prefix -
Returns:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.