|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents either an attribute or the simple content of an element.
Method Summary | |
int |
getDefaultType()
Gets the defaultType attribute of the GrammarSimpleType object |
java.lang.String |
getDefaultValue()
Gets the defaultValue attribute of the GrammarSimpleType object |
java.lang.String[] |
getEnumeration()
Gets the allowed values for this simple type. |
GrammarComplexType |
getGrammarComplexType()
Gets the parent complex type. |
boolean |
getIsRequired()
Gets whether this simple type must have a value. |
boolean |
getIsValid(FieldNode valueNode)
Validates the proposed content. |
java.lang.String |
getName()
Gets the name attribute of the GrammarSimpleType object |
java.lang.String |
getPrimitiveType()
Gets the primitiveType attribute of the GrammarSimpleType object. |
int |
getType()
Gets the type attribute of the GrammarSimpleType object |
java.lang.String |
getValidationMessage(FieldNode valueNode)
Validates the proposed content, and returns an error message, if any. |
void |
setValue(FieldNode fieldNode,
java.lang.String value)
To be called so that the grammar can keep track of IDs or Keys and ensure that they remain unique. |
Method Detail |
public java.lang.String getName()
public GrammarComplexType getGrammarComplexType()
public int getType()
public int getDefaultType()
public java.lang.String[] getEnumeration()
public java.lang.String getDefaultValue()
public boolean getIsRequired()
XML Schema:
public java.lang.String getPrimitiveType()
public boolean getIsValid(FieldNode valueNode)
valueNode
- The Attr or Text that contains the value.
public java.lang.String getValidationMessage(FieldNode valueNode)
public void setValue(FieldNode fieldNode, java.lang.String value)
This should later be replaced by something that listens to events for changes in the document and updates itself.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |