com.eviware.soapui.impl.wadl.inference.schema.content
Class SequenceContent

java.lang.Object
  extended by com.eviware.soapui.impl.wadl.inference.schema.content.SequenceContent
All Implemented Interfaces:
Content

public class SequenceContent
extends java.lang.Object
implements Content

SequenceContent represents an xs:sequence. It infers ordering and occurrences of its children. It can also represent an xs:choice, if each element has only occured by itself.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Content
Content.Factory
 
Constructor Summary
SequenceContent(Schema schema, boolean completed)
           
SequenceContent(com.eviware.soapui.inferredSchema.SequenceContentConfig xml, Schema schema)
           
 
Method Summary
 com.eviware.soapui.inferredSchema.SequenceContentConfig save()
          Save the Content to an XmlObject.
 java.lang.String toString(java.lang.String attrs)
           
 Content 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, toString, wait, wait, wait
 

Constructor Detail

SequenceContent

public SequenceContent(Schema schema,
                       boolean completed)

SequenceContent

public SequenceContent(com.eviware.soapui.inferredSchema.SequenceContentConfig xml,
                       Schema schema)
Method Detail

save

public com.eviware.soapui.inferredSchema.SequenceContentConfig save()
Description copied from interface: Content
Save the Content to an XmlObject.

Specified by:
save in interface Content

validate

public Content validate(Context context)
                 throws org.apache.xmlbeans.XmlException
Description copied from interface: Content
Validates an XML document contained in a given Context object.

Specified by:
validate in interface Content
Parameters:
context - A Context object containing the XML data to be validated, and other needed contextual variables.
Returns:
Returns a Content object that is valid for the element/attribute, quite possibly this Content instance itself.
Throws:
org.apache.xmlbeans.XmlException

toString

public java.lang.String toString(java.lang.String attrs)
Specified by:
toString in interface Content


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