An object that holds information about a validation in-progress, such as the cursor of the content to be validated., etc.
Constructor and description |
---|
Context
(SchemaSystem system, ConflictHandler handler, XmlCursor cursor) Creates a new Context object. |
Type Params | Return Type | Name and description |
---|---|---|
|
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. |
|
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 | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a new Context object.
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.Append an element to the end of the current path.
item
- The name of the element to trascend into.Delete a stored attribute.
key
- The name of the attribute to delete.Get a stored attribute.
key
- The key of the attribute to get.Get the internal cursor pointing to the current position of the XML content to be validated.
Getter for the contained ConflictHandler.
Get a name to use for a Complex Type at the current path. Names are derived from paths, using the locality from the Settings class.
Get the path currently at.
Get the SchemaSystem currently used for validation.
Pop a previously pushed path from the internal stack, overwriting whatever is currently in the path.
Push the current path to an internal stack, and start with an empty path.
Store an attribute.
key
- The name of the attribute to store.value
- The value to store.Move up one level, removing the last element from the path.
ReadyAPI functional (soapui) SDK 3.20.1