|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(String noun,
String name)
Called with a noun and a proper noun to perform substitution on the diagnostic messages, e.g., format("employee", "John Doe"). |
Collection |
getAssessments()
Returns any nested assessments that were performed. |
String |
getCanonicalLiteral()
Returns the canonical literal representation of the assessed value. |
Collection |
getDiagnostics()
Returns the diagnostics collected for this particular assessment and for any nested assessments. |
String |
getLiteral()
Returns the literal that is assessed. |
Collection |
getLocalDiagnostics()
Returns the diagnostics that are collected for just this particular assessment. |
Node |
getNode()
Returns the node whose literal value is assessed. |
String |
getNormalizedLiteral()
Returns the normalized value of the literal that is assessed. |
XSDSimpleTypeDefinition |
getTypeDefinition()
Returns the type definition against which the literal is assessed. |
Object |
getValue()
Return the value of the normalized literal in the Java representation of the value space. |
Method Detail |
public XSDSimpleTypeDefinition getTypeDefinition()
public Node getNode()
public String getLiteral()
public String getNormalizedLiteral()
public Object getValue()
public String getCanonicalLiteral()
public Collection getDiagnostics()
public Collection getAssessments()
public Collection getLocalDiagnostics()
public void format(String noun, 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 |