Particle.Factory, Particle.ParticleType| Constructor and Description |
|---|
ElementParticle(ElementParticleConfig xml,
Schema schema) |
ElementParticle(Schema schema,
String name) |
| 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.
|
ElementParticleConfig |
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 ElementParticle(ElementParticleConfig xml, Schema schema)
public ElementParticleConfig save()
public String getAttribute(String key)
ParticlegetAttribute in interface Particlekey - The name of the attribute to get the value for.public QName getName()
Particlepublic Type getType()
Particlepublic void setAttribute(String key, String value)
ParticlesetAttribute in interface Particlekey - The name of the attribute to set.value - The value to set.public void setType(Type type)
Particlepublic void validate(Context context) throws org.apache.xmlbeans.XmlException
Particlepublic Particle.ParticleType getPType()
ParticleCopyright © 2019. All rights reserved.