|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.util.xml.xerces.SchemaGrammarSimpleTypeImpl
An implementation of GrammarSimpleType for Schemas.
Field Summary | |
protected int |
_debugLevel
Utility to minimise the output during debugging. |
Constructor Summary | |
SchemaGrammarSimpleTypeImpl(SchemaGrammarComplexTypeImpl complexType,
org.apache.xerces.xs.XSAttributeUse attributeUse)
Constructor for an attribute. |
|
SchemaGrammarSimpleTypeImpl(SchemaGrammarComplexTypeImpl complexType,
org.apache.xerces.xs.XSElementDeclaration elementDeclaration)
Constructor for the simple content of an element. |
Method Summary | |
protected void |
debug(int level,
java.lang.String message)
|
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. |
int |
getMaxLength()
|
int |
getMinLength()
|
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. |
org.apache.xerces.impl.dv.XSSimpleType |
getXSSimpleType()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int _debugLevel
Constructor Detail |
public SchemaGrammarSimpleTypeImpl(SchemaGrammarComplexTypeImpl complexType, org.apache.xerces.xs.XSAttributeUse attributeUse)
public SchemaGrammarSimpleTypeImpl(SchemaGrammarComplexTypeImpl complexType, org.apache.xerces.xs.XSElementDeclaration elementDeclaration)
Method Detail |
public int getDefaultType()
GrammarSimpleType
getDefaultType
in interface GrammarSimpleType
public java.lang.String getDefaultValue()
GrammarSimpleType
getDefaultValue
in interface GrammarSimpleType
public java.lang.String[] getEnumeration()
GrammarSimpleType
getEnumeration
in interface GrammarSimpleType
public boolean getIsRequired()
GrammarSimpleType
XML Schema:
getIsRequired
in interface GrammarSimpleType
public boolean getIsValid(FieldNode valueNode)
GrammarSimpleType
getIsValid
in interface GrammarSimpleType
valueNode
- The Attr or Text that contains the value.
public java.lang.String getName()
GrammarSimpleType
getName
in interface GrammarSimpleType
public GrammarComplexType getGrammarComplexType()
GrammarSimpleType
getGrammarComplexType
in interface GrammarSimpleType
public java.lang.String getPrimitiveType()
GrammarSimpleType
getPrimitiveType
in interface GrammarSimpleType
public int getType()
GrammarSimpleType
getType
in interface GrammarSimpleType
public java.lang.String getValidationMessage(FieldNode valueNode)
GrammarSimpleType
getValidationMessage
in interface GrammarSimpleType
public org.apache.xerces.impl.dv.XSSimpleType getXSSimpleType()
public void setValue(FieldNode fieldNode, java.lang.String value)
GrammarSimpleType
This should later be replaced by something that listens to events for changes in the document and updates itself.
setValue
in interface GrammarSimpleType
protected void debug(int level, java.lang.String message)
public int getMinLength()
public int getMaxLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |