Package org.nuxeo.ecm.core.schema.types
Class QName
- java.lang.Object
-
- 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getLocalName
public final String getLocalName()
-
getPrefixedName
public final String getPrefixedName()
-
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
-
-