|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eviware.soapui.impl.wadl.inference.schema.Context
public class Context
An object that holds information about a validation in-progress, such as the cursor of the content to be validated., etc.
| Constructor Summary | |
|---|---|
Context(SchemaSystem system,
ConflictHandler handler,
org.apache.xmlbeans.XmlCursor cursor)
Creates a new Context object. |
|
| Method Summary | |
|---|---|
void |
cd(java.lang.String item)
Append an element to the end of the current path. |
void |
clearAttribute(java.lang.String key)
Delete a stored attribute. |
java.lang.String |
getAttribute(java.lang.String key)
Get a stored attribute. |
org.apache.xmlbeans.XmlCursor |
getCursor()
Get the internal cursor pointing to the current position of the XML content to be validated. |
ConflictHandler |
getHandler()
Getter for the contained ConflictHandler. |
java.lang.String |
getName()
Get a name to use for a Complex Type at the current path. |
java.lang.String |
getPath()
Get the path currently at. |
SchemaSystem |
getSchemaSystem()
Get the SchemaSystem currently used for validation. |
void |
popPath()
Pop a previously pushed path from the internal stack, overwriting whatever is currently in the path. |
void |
pushPath()
Push the current path to an internal stack, and start with an empty path. |
void |
putAttribute(java.lang.String key,
java.lang.String value)
Store an attribute. |
void |
up()
Move up one level, removing the last element from the path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context(SchemaSystem system,
ConflictHandler handler,
org.apache.xmlbeans.XmlCursor cursor)
system - The SchemaSystem holding the namespaces to be used for
validation.handler - The ConflictHandler to use whenever a validation error occurs to
decide upon which action to take.cursor - An XmlCursor pointing to the beginning of the XML content to
validate.| Method Detail |
|---|
public ConflictHandler getHandler()
public java.lang.String getName()
public java.lang.String getAttribute(java.lang.String key)
key - The key of the attribute to get.
public void putAttribute(java.lang.String key,
java.lang.String value)
key - The name of the attribute to store.value - The value to store.public void clearAttribute(java.lang.String key)
key - The name of the attribute to delete.public java.lang.String getPath()
public void pushPath()
public void popPath()
public void cd(java.lang.String item)
item - The name of the element to trascend into.public void up()
public org.apache.xmlbeans.XmlCursor getCursor()
public SchemaSystem getSchemaSystem()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||