Save This Page
Home » openjdk-7 » com.sun.xml.internal » xsom » [javadoc | source]
com.sun.xml.internal.xsom
public final class: XmlString [javadoc | source]
java.lang.Object
   com.sun.xml.internal.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
public final  String value    Textual value. AKA lexical representation. 
public final  ValidationContext context    Used to resole in-scope namespace bindings. 
Constructor:
 public XmlString(String value) 
    Creates a new XmlString with empty in-scope namespace bindings.
 public XmlString(String value,
    ValidationContext context) 
    Creates a new XmlString from a lexical representation and in-scope namespaces.
Method from com.sun.xml.internal.xsom.XmlString Summary:
resolvePrefix,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.xml.internal.xsom.XmlString Detail:
 public final String resolvePrefix(String prefix) 
    Resolves a namespace prefix to the corresponding namespace URI. This method is used for resolving prefixes in the #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()