|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface XSDSimpleTypeDefinition.Assessment
Information gathered during the assessment a literal
with respect to a '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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |