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:
  • Constructor Details

    • 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.
  • Method Details

    • 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.