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 intCheck if a string is a valid NMTOKEN, Name, or NCName.final NamespaceBindingNamespace nodes associated with an element.static booleanstatic booleanisNamePart(int ch) static booleanisNameStart(int ch) static booleanstatic booleanvoidfinal voidvoidMethods 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:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSymbol- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSymbol- Throws:
IOExceptionClassNotFoundException
-
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.
-