Class QName
java.lang.Object
org.dom4j.QName
- All Implemented Interfaces:
Serializable
QName represents a qualified name value of an XML element or
attribute. It consists of a local name and a Namespaceinstance. This
object is immutable.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DocumentFactoryThe document factory used for this QName if specified or nullprivate intA cached version of the hashcode for efficiencyprivate StringThe local name of the element or attributeprivate static final StringNameCharwithout colon.private static final StringNameStartCharwithout colon.private NamespaceThe Namespace of this element or attributeprivate static final StringNCNameprivate StringThe qualified name of the element or attributeprivate static final PatternRegular expression forName(with colon).private static final PatternRegular expression forNCName.private static final PatternRegular expression forQName.private static SingletonStrategy<QNameCache> The Singleton instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic QNamestatic QNamestatic QNamestatic QNamestatic QNameprivate static QNameCachegetCache()DOCUMENT ME!getName()DOCUMENT ME!DOCUMENT ME!DOCUMENT ME!DOCUMENT ME!DOCUMENT ME!inthashCode()DOCUMENT ME!private voidvoidsetDocumentFactory(DocumentFactory documentFactory) toString()private static voidvalidateName(String name) protected static voidvalidateNCName(String ncname) private static voidvalidateQName(String qname) private void
-
Field Details
-
singleton
The Singleton instance -
NAME_START_CHAR
NameStartCharwithout colon.NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
- See Also:
-
NAME_CHAR
NameCharwithout colon.NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]
- See Also:
-
NCNAME
NCNameNCName ::= NCNameStartChar NCNameChar* (An XML Name, minus the ":") NCNameChar ::= NameChar -':' NCNameStartChar ::= NameStartChar -':'
- See Also:
-
RE_NAME
Regular expression forName(with colon).Name ::= NameStartChar (NameChar)*
- See Also:
-
RE_NCNAME
Regular expression forNCName.NCName ::= NCNameStartChar NCNameChar* (An XML Name, minus the ":") NCNameChar ::= NameChar -':' NCNameStartChar ::= NameStartChar -':'
- See Also:
-
RE_QNAME
Regular expression forQName.QName ::= PrefixedName | UnprefixedName PrefixedName ::= Prefix ':' LocalPart UnprefixedName ::= LocalPart Prefix ::= NCName LocalPart ::= NCName
- See Also:
-
name
The local name of the element or attribute -
qualifiedName
The qualified name of the element or attribute -
namespace
The Namespace of this element or attribute -
hashCode
private int hashCodeA cached version of the hashcode for efficiency -
documentFactory
The document factory used for this QName if specified or null
-
-
Constructor Details
-
QName
-
QName
-
QName
-
-
Method Details
-
get
-
get
-
get
-
get
-
get
-
getName
-
getQualifiedName
DOCUMENT ME!- Returns:
- the qualified name in the format
prefix:localName
-
getNamespace
-
getNamespacePrefix
-
getNamespaceURI
-
hashCode
-
equals
-
toString
-
getDocumentFactory
DOCUMENT ME!- Returns:
- the factory that should be used for Elements of this QName
-
setDocumentFactory
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
getCache
-
validateName
-
validateNCName
-
validateQName
-