Package com.sun.xml.xsom
Class XmlString
java.lang.Object
com.sun.xml.xsom.XmlString
String with in-scope namespace binding information.
In a general case, text (PCDATA/attributes) that appear in XML schema cannot be correctly interpreted unless you also have in-scope namespace binding (a case in point is QName.) Therefore, it's convenient to handle the lexical representation and the in-scope namespace binding in a pair.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.relaxng.datatype.ValidationContext
Used to resole in-scope namespace bindings.private static final org.relaxng.datatype.ValidationContext
final String
Textual value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
resolvePrefix
(String prefix) Resolves a namespace prefix to the corresponding namespace URI.toString()
-
Field Details
-
value
Textual value. AKA lexical representation. -
context
public final org.relaxng.datatype.ValidationContext contextUsed to resole in-scope namespace bindings. -
NULL_CONTEXT
private static final org.relaxng.datatype.ValidationContext NULL_CONTEXT
-
-
Constructor Details
-
Method Details
-
resolvePrefix
Resolves a namespace prefix to the corresponding namespace URI. This method is used for resolving prefixes in thevalue
(such as whenvalue
represents a QName type.)If the prefix is "" (empty string), the method returns the default namespace URI.
If the prefix is "xml", then the method returns "http://www.w3.org/XML/1998/namespace", as defined in the XML Namespaces Recommendation.
- Returns:
- namespace URI of this prefix. If the specified prefix is not declared, the implementation returns null.
-
toString
-