com.eviware.soapui.impl.wadl.inference.schema
Interface Type

All Known Implementing Classes:
ComplexType, CustomType, EmptyType, SimpleType, TypeReferenceType

public interface Type

An instance of an XML Schema type.

Author:
Dain Nilsson

Nested Class Summary
static class Type.Factory
          A static factory class for creating new instances.
 
Method Summary
 java.lang.String getName()
          Return the name for the type, not including namespace prefix.
 Schema getSchema()
          Getter for the schema in which the element/attribute with this type lives.
 com.eviware.soapui.inferredSchema.TypeConfig save()
          Serialize instance to XmlObject.
 void setSchema(Schema schema)
          Setter for the schema in which this type lives.
 java.lang.String toString()
           
 Type validate(Context context)
          Validate an element/attribute with this type.
 

Method Detail

getName

java.lang.String getName()
Return the name for the type, not including namespace prefix.

Returns:
The name of the type.

getSchema

Schema getSchema()
Getter for the schema in which the element/attribute with this type lives.

Returns:
The Schema for the type.

validate

Type validate(Context context)
              throws org.apache.xmlbeans.XmlException
Validate an element/attribute with this type.

Parameters:
context - A Context object holding the current
Returns:
Returns a Type that is valid for the element/attribute, quite possibly this Type instance itself.
Throws:
org.apache.xmlbeans.XmlException

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

setSchema

void setSchema(Schema schema)
Setter for the schema in which this type lives.

Parameters:
schema -

save

com.eviware.soapui.inferredSchema.TypeConfig save()
Serialize instance to XmlObject.

Returns:
Returns an XmlObject storing the variables of this instance.


Copyright © 2005-2010 eviware.com. All Rights Reserved.