Package gnu.xml
Class XName
java.lang.Object
gnu.mapping.Symbol
gnu.xml.XName
- All Implemented Interfaces:
EnvironmentKey
,Externalizable
,Serializable
,Comparable
A QName with namespace nodes [and future optional type annotation].
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Check if a string is a valid NMTOKEN, Name, or NCName.final NamespaceBinding
Namespace nodes associated with an element.static boolean
static boolean
isNamePart
(int ch) static boolean
isNameStart
(int ch) static boolean
static boolean
void
final void
void
Methods inherited from class gnu.mapping.Symbol
compareTo, equals, equals, getKeyProperty, getKeySymbol, getLocalName, getLocalPart, getName, getNamespace, getNamespaceURI, getPrefix, hasEmptyNamespace, hashCode, hasUnknownNamespace, make, make, makeUninterned, makeUninterned, makeWithUnknownNamespace, matches, matches, parse, readResolve, setNamespace, toString, toString, valueOf, valueOf, valueOf
-
Constructor Details
-
XName
public XName() -
XName
-
-
Method Details
-
getNamespaceNodes
Namespace nodes associated with an element. These are in inverse document/parse order. -
setNamespaceNodes
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classSymbol
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classSymbol
- Throws:
IOException
ClassNotFoundException
-
isNameStart
public static boolean isNameStart(int ch) -
isNamePart
public static boolean isNamePart(int ch) -
isNmToken
-
isName
-
isNCName
-
checkName
Check if a string is a valid NMTOKEN, Name, or NCName.- Returns:
- 2 if string is an NCName; otherwise 1 if string is a Name; otherwise 0 if string is an NMTOKEN; otherwise -1.
-