Particle.Factory, Particle.ParticleType| Constructor and Description | 
|---|
| ReferenceParticle(ReferenceParticleConfig xml,
                 Schema schema) | 
| ReferenceParticle(Schema schema,
                 Particle reference) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAttribute(String key)Get the attribute value that corresponds to the given name. | 
| QName | getName()Get the QName of this Particle. | 
| Particle.ParticleType | getPType()Get the ParticleType of the Particle, that is, attribute or element. | 
| Type | getType()Get the Type of the element or attribute that is described by this
 particle. | 
| ReferenceParticleConfig | save() | 
| void | setAttribute(String key,
            String value)Set an attribute. | 
| void | setType(Type type)Set the Type of the element or attribute that is described by this
 particle. | 
| String | toString() | 
| void | validate(Context context)Validates an XML document contained in a given Context object, at the
 position specified by the cursor contained in same Context object. | 
public ReferenceParticle(ReferenceParticleConfig xml, Schema schema)
public ReferenceParticleConfig save()
public QName getName()
Particlepublic String getAttribute(String key)
ParticlegetAttribute in interface Particlekey - The name of the attribute to get the value for.public void setAttribute(String key, String value)
ParticlesetAttribute in interface Particlekey - The name of the attribute to set.value - The value to set.public Type getType()
Particlepublic void setType(Type type)
Particlepublic void validate(Context context) throws org.apache.xmlbeans.XmlException
Particlepublic Particle.ParticleType getPType()
ParticleCopyright © 2019. All Rights Reserved.