com.eviware.soapui.impl.wadl.inference.schema
Class Particle.Factory

java.lang.Object
  extended by com.eviware.soapui.impl.wadl.inference.schema.Particle.Factory
Enclosing interface:
Particle

public static class Particle.Factory
extends java.lang.Object

A static factory class for creating new instances.

Author:
Dain Nilsson

Constructor Summary
Particle.Factory()
           
 
Method Summary
static Particle newAttributeInstance(Schema schema, java.lang.String name)
          Create a blank new Particle representing an xs:attribute.
static Particle newElementInstance(Schema schema, java.lang.String name)
          Create a blank new Particle representing an xs:element.
static Particle newReferenceInstance(Schema schema, Particle reference)
          Create a blank new Particle representing a reference to an element or attribute within a separate namespace.
static Particle parse(com.eviware.soapui.inferredSchema.ParticleConfig xml, Schema schema)
          Constructs a Particle object using previously saved data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Particle.Factory

public Particle.Factory()
Method Detail

newElementInstance

public static Particle newElementInstance(Schema schema,
                                          java.lang.String name)
Create a blank new Particle representing an xs:element.

Parameters:
schema - The Schema in which the element will live.
name - A name to give the newly created element.
Returns:
Returns the newly created particle.

newAttributeInstance

public static Particle newAttributeInstance(Schema schema,
                                            java.lang.String name)
Create a blank new Particle representing an xs:attribute.

Parameters:
schema - The Schema in which the attribute will live.
name - A name to give the newly created attribute.
Returns:
Returns the newly created particle.

newReferenceInstance

public static Particle newReferenceInstance(Schema schema,
                                            Particle reference)
Create a blank new Particle representing a reference to an element or attribute within a separate namespace.

Parameters:
schema - The Schema in which the reference will live.
reference - The Particle to create a reference to.
Returns:
Returns the newly created particle.

parse

public static Particle parse(com.eviware.soapui.inferredSchema.ParticleConfig xml,
                             Schema schema)
Constructs a Particle object using previously saved data.

Parameters:
xml - XmlObject to which data has previously been saved.
schema - The Schema in which to place the newly constructed Particle.
Returns:
Returns the newly constructed Particle.


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