|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.xsom.XmlString
public final class 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 | |
---|---|
org.relaxng.datatype.ValidationContext |
context
Used to resole in-scope namespace bindings. |
String |
value
Textual value. |
Constructor Summary | |
---|---|
XmlString(String value)
Creates a new XmlString with empty in-scope namespace bindings. |
|
XmlString(String value,
org.relaxng.datatype.ValidationContext context)
Creates a new XmlString from a lexical representation and in-scope namespaces. |
Method Summary | |
---|---|
String |
resolvePrefix(String prefix)
Resolves a namespace prefix to the corresponding namespace URI. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String value
public final org.relaxng.datatype.ValidationContext context
Constructor Detail |
---|
public XmlString(String value, org.relaxng.datatype.ValidationContext context)
XmlString
from a lexical representation and in-scope namespaces.
public XmlString(String value)
XmlString
with empty in-scope namespace bindings.
Method Detail |
---|
public final String resolvePrefix(String prefix)
value
(such as when value
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.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |