Represents an inferred schema for a single namespace.
Constructor and description |
---|
Schema
(java.lang.String namespace, SchemaSystem schemaSystem) Constructs a blank new Schema for the given namespace in the given SchemaSystem. |
Schema
(SchemaConfig xml, SchemaSystem schemaSystem) Constructs a Schema object using previously saved data. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addType(ComplexType type) Add a ComplexType to this Schema. |
|
java.lang.String |
getNamespace() Getter for the namespace of this Schema. |
|
Particle |
getParticle(java.lang.String name) Get a global particle by its name. |
|
java.lang.String |
getPrefixForNamespace(java.lang.String namespace) Gets the prefix used in this schema for a different namespace, if one exists. |
|
SchemaSystem |
getSystem() Getter for the SchemaSystem that contains this Schema. |
|
Type |
getType(java.lang.String name) Get a Type contained in this schema by name. |
|
Particle |
newAttribute(java.lang.String name) Create and add a new global attribute for this schema. |
|
Particle |
newElement(java.lang.String name) Create and add a new root element for this schema. |
|
void |
putPrefixForNamespace(java.lang.String prefix, java.lang.String namespace) Set the prefix used in this schema for a different namespace. |
|
void |
save(SchemaConfig xml) Save the Schema to an XmlObject. |
|
java.lang.String |
toString() |
|
void |
validate(Context context) Validates an XML document contained in a given Context object. |
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() |
Constructs a blank new Schema for the given namespace in the given SchemaSystem.
namespace
- The namespace for the new schema.schemaSystem
- The SchemaSystem in which to place the newly created Schema.Constructs a Schema object using previously saved data.
xml
- The XmlObject to which data has previously been saved.schemaSystem
- The SchemaSystem in which to place the newly created Schema.Add a ComplexType to this Schema.
type
- The ComplexType to be added.Getter for the namespace of this Schema.
Get a global particle by its name.
name
- The name of the particle to get.Gets the prefix used in this schema for a different namespace, if one exists.
namespace
- Another namespace to get the prefix for.Getter for the SchemaSystem that contains this Schema.
Get a Type contained in this schema by name.
name
- The name of a contained Type.Create and add a new global attribute for this schema.
name
- The name to give the newly created attribute.Create and add a new root element for this schema.
name
- The name to give the newly created element.Set the prefix used in this schema for a different namespace.
prefix
- The prefix to be used.namespace
- The namespace to use the prefix for.Save the Schema to an XmlObject.
xml
- A blank XmlObject to save to.Validates an XML document contained in a given Context object.
context
- A Context object containing the XML data to be validated, and
other needed contextual variables.ReadyAPI functional (soapui) SDK 3.20.1