|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.sax.SchemaElement
public class SchemaElement
| Constructor Summary | |
|---|---|
SchemaElement(Schema owningSchema,
java.lang.String name)
Create a new instance of SchemaNode |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String usage)
Add an attribute to this element |
void |
addTransition(SchemaElement node)
Add a transition out of this node to another node |
java.lang.String |
getName()
Get the name associated with this Schema node |
java.lang.reflect.Method |
getOnEnterMethod()
Return the Method to call when entering this element |
java.lang.reflect.Method |
getOnExitMethod()
Return the Method to call when exiting this element |
SchemaElement[] |
getTransitionElements()
getTransitionElements |
boolean |
hasAttribute(java.lang.String name)
Determine if this element has a definition for the specified attribute name |
boolean |
hasOnEnterMethod()
Determine if this element has an associated OnEnter handler |
boolean |
hasOnExitMethod()
Determine if this element has an associated OnExit handler |
boolean |
hasTransitions()
hasTransitions |
boolean |
isDeprecatedAttribute(java.lang.String name)
Determine if the specified attribute name is optional on this element |
boolean |
isOptionalAttribute(java.lang.String name)
Determine if the specified attribute name is optional on this element |
boolean |
isRequiredAttribute(java.lang.String name)
Determine if the specified attribute name is required on this element |
boolean |
isValidAttribute(java.lang.String name)
Determine if the specified attribute name is allowed on this element |
boolean |
isValidTransition(java.lang.String name)
Determine if this node can transition to another node using the given name |
SchemaElement |
moveTo(java.lang.String name)
Get the named SchemaElement that transitions from this element |
void |
setOnEnter(java.lang.String onEnterMethod)
Set the method to call after entering this element |
void |
setOnExit(java.lang.String onExitMethod)
Set the method to call before exiting this element |
java.lang.String |
toString()
|
void |
validateAttributes(org.xml.sax.Attributes attributes)
Validate the list of attributes against this element's definition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaElement(Schema owningSchema,
java.lang.String name)
owningSchema - The schema that owns this elementname - The name of this node| Method Detail |
|---|
public java.lang.String getName()
public java.lang.reflect.Method getOnEnterMethod()
public void setOnEnter(java.lang.String onEnterMethod)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
onEnterMethod - The name of the method to call on the schema's handler object when we enter this element
java.lang.NoSuchMethodException
java.lang.SecurityExceptionpublic java.lang.reflect.Method getOnExitMethod()
public void setOnExit(java.lang.String onExitMethod)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
onExitMethod - The name of the method to call on the schema's handler object when we exit this element
java.lang.NoSuchMethodException
java.lang.SecurityExceptionpublic SchemaElement[] getTransitionElements()
public boolean hasAttribute(java.lang.String name)
name - The name of the attribute to test
public boolean hasOnEnterMethod()
public boolean hasOnExitMethod()
public boolean hasTransitions()
public boolean isDeprecatedAttribute(java.lang.String name)
name - The name of the attribute to test
public boolean isOptionalAttribute(java.lang.String name)
name - The name of the attribute to test
public boolean isRequiredAttribute(java.lang.String name)
name - The name of the attribute to test
public boolean isValidAttribute(java.lang.String name)
name - The name of the attribute to test
public boolean isValidTransition(java.lang.String name)
name - The name of the node to test as a possible transition target
public void addAttribute(java.lang.String name,
java.lang.String usage)
name - The name of the attributeusage - The usage requirements for the attributepublic void addTransition(SchemaElement node)
node - The node to which this node can transitionpublic SchemaElement moveTo(java.lang.String name)
name - The name of the SchemaElement to transition to
public void validateAttributes(org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
attributes - The list of attributes to test
org.xml.sax.SAXExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||