| Constructor and Description | 
|---|
| Factory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Particle | newAttributeInstance(Schema schema,
                    String name)Create a blank new Particle representing an xs:attribute. | 
| static Particle | newElementInstance(Schema schema,
                  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(ParticleConfig xml,
     Schema schema)Constructs a Particle object using previously saved data. | 
public static Particle newElementInstance(Schema schema, String name)
schema - The Schema in which the element will live.name - A name to give the newly created element.public static Particle newAttributeInstance(Schema schema, String name)
schema - The Schema in which the attribute will live.name - A name to give the newly created attribute.public static Particle newReferenceInstance(Schema schema, Particle reference)
schema - The Schema in which the reference will live.reference - The Particle to create a reference to.public static Particle parse(ParticleConfig xml, Schema schema)
xml - XmlObject to which data has previously been saved.schema - The Schema in which to place the newly constructed Particle.Copyright © 2019. All Rights Reserved.