public interface Particle
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | Particle.FactoryA static factory class for creating new instances. | 
| static class  | Particle.ParticleTypeAn enum representing one of two particle types, element or attribute. | 
| 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. | 
| ParticleConfig | 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. | 
| 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. | 
QName getName()
Particle.ParticleType getPType()
Type getType()
void setType(Type type)
type - The Type to set.String getAttribute(String key)
key - The name of the attribute to get the value for.void setAttribute(String key, String value)
key - The name of the attribute to set.value - The value to set.void validate(Context context) throws org.apache.xmlbeans.XmlException
context - A Context object containing the XML data to be validated, and
                other needed contextual variables.org.apache.xmlbeans.XmlException - On unresolvable validation error.ParticleConfig save()
Copyright © 2019. All Rights Reserved.