|
||||||||||
| 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.Schema
public class Schema
Represents an inferred schema for a single namespace.
| Constructor Summary | |
|---|---|
Schema(com.eviware.soapui.inferredSchema.SchemaConfig xml,
SchemaSystem schemaSystem)
Constructs a Schema object using previously saved data. |
|
Schema(java.lang.String namespace,
SchemaSystem schemaSystem)
Constructs a blank new Schema for the given namespace in the given SchemaSystem. |
|
| Method Summary | |
|---|---|
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(com.eviware.soapui.inferredSchema.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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Schema(java.lang.String namespace,
SchemaSystem schemaSystem)
namespace - The namespace for the new schema.schemaSystem - The SchemaSystem in which to place the newly created Schema.
public Schema(com.eviware.soapui.inferredSchema.SchemaConfig xml,
SchemaSystem schemaSystem)
xml - The XmlObject to which data has previously been saved.schemaSystem - The SchemaSystem in which to place the newly created Schema.| Method Detail |
|---|
public void save(com.eviware.soapui.inferredSchema.SchemaConfig xml)
xml - A blank XmlObject to save to.public void addType(ComplexType type)
type - The ComplexType to be added.public java.lang.String getNamespace()
public java.lang.String getPrefixForNamespace(java.lang.String namespace)
namespace - Another namespace to get the prefix for.
public void putPrefixForNamespace(java.lang.String prefix,
java.lang.String namespace)
prefix - The prefix to be used.namespace - The namespace to use the prefix for.public Type getType(java.lang.String name)
name - The name of a contained Type.
public Particle newElement(java.lang.String name)
name - The name to give the newly created element.
public Particle newAttribute(java.lang.String name)
name - The name to give the newly created attribute.
public java.lang.String toString()
toString in class java.lang.Object
public void validate(Context context)
throws org.apache.xmlbeans.XmlException
context - A Context object containing the XML data to be validated, and
other needed contextual variables.
org.apache.xmlbeans.XmlException - On unresolvable validation error.public SchemaSystem getSystem()
public Particle getParticle(java.lang.String name)
name - The name of the particle to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||