com.eviware.soapui.impl.wadl.inference.schema.types
Class TypeReferenceType

java.lang.Object
  extended by com.eviware.soapui.impl.wadl.inference.schema.types.TypeReferenceType
All Implemented Interfaces:
Type

public class TypeReferenceType
extends java.lang.Object
implements Type

This Type is simply a reference to another, actual Type. It is used when loading previously saved data, since the Type may not yet be loaded.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Type
Type.Factory
 
Constructor Summary
TypeReferenceType(com.eviware.soapui.inferredSchema.TypeReferenceConfig xml, Schema schema)
          Constructs a new TypeReferenceType from previously saved data.
 
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.
 Type validate(Context context)
          Validate an element/attribute with this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Type
toString
 

Constructor Detail

TypeReferenceType

public TypeReferenceType(com.eviware.soapui.inferredSchema.TypeReferenceConfig xml,
                         Schema schema)
Constructs a new TypeReferenceType from previously saved data. Should be called in the Type.Factory.

Method Detail

save

public com.eviware.soapui.inferredSchema.TypeConfig save()
Description copied from interface: Type
Serialize instance to XmlObject.

Specified by:
save in interface Type
Returns:
Returns an XmlObject storing the variables of this instance.

getName

public java.lang.String getName()
Description copied from interface: Type
Return the name for the type, not including namespace prefix.

Specified by:
getName in interface Type
Returns:
The name of the type.

validate

public Type validate(Context context)
              throws org.apache.xmlbeans.XmlException
Description copied from interface: Type
Validate an element/attribute with this type.

Specified by:
validate in interface 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

getSchema

public Schema getSchema()
Description copied from interface: Type
Getter for the schema in which the element/attribute with this type lives.

Specified by:
getSchema in interface Type
Returns:
The Schema for the type.

setSchema

public void setSchema(Schema schema)
Description copied from interface: Type
Setter for the schema in which this type lives.

Specified by:
setSchema in interface Type


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