public static interface XSDSimpleTypeDefinition.Assessment
Simple Type Definition
'.
You may begin assessment with a Node
, which handles three cases:
if the node is an attribute, it's value is used to determine the literal;
if the node is a text node, it's data is used to determine the literal;
if the node is an element, it's (one and only) child text node is used to determine the literal as in the preceeding case.
You may also begin assessment with just a literal
;
in this case, the returned diagnostics will contain substitution variables.
Modifier and Type | Method and Description |
---|---|
void |
format(java.lang.String noun,
java.lang.String name)
Called with a noun and a proper noun
to perform substitution on the diagnostic messages,
e.g., format("employee", "John Doe").
|
java.util.Collection<XSDSimpleTypeDefinition.Assessment> |
getAssessments()
Returns any nested assessments that were performed.
|
java.lang.String |
getCanonicalLiteral()
Returns the canonical literal representation of the assessed value.
|
org.w3c.dom.Element |
getContext()
Returns the element used as the context for this assessment; this is significant only for interpretting the prefix of QNames.
|
java.util.Collection<XSDDiagnostic> |
getDiagnostics()
Returns the diagnostics collected for this particular assessment and for any nested assessments.
|
java.lang.String |
getLiteral()
Returns the literal that is assessed.
|
java.util.Collection<XSDDiagnostic> |
getLocalDiagnostics()
Returns the diagnostics that are collected for just this particular assessment.
|
org.w3c.dom.Node |
getNode()
Returns the node whose literal value is assessed.
|
java.lang.String |
getNormalizedLiteral()
Returns the normalized value of the literal that is assessed.
|
XSDSimpleTypeDefinition |
getTypeDefinition()
Returns the type definition against which the literal is assessed.
|
java.lang.Object |
getValue()
Return the value of the normalized literal in the Java representation of the value space.
|
XSDSimpleTypeDefinition getTypeDefinition()
org.w3c.dom.Element getContext()
org.w3c.dom.Node getNode()
java.lang.String getLiteral()
java.lang.String getNormalizedLiteral()
java.lang.Object getValue()
java.lang.String getCanonicalLiteral()
java.util.Collection<XSDDiagnostic> getDiagnostics()
java.util.Collection<XSDSimpleTypeDefinition.Assessment> getAssessments()
java.util.Collection<XSDDiagnostic> getLocalDiagnostics()
void format(java.lang.String noun, java.lang.String name)
noun
- a noun.name
- a proper noun.