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()
Particle
public String getAttribute(String key)
Particle
getAttribute
in interface Particle
key
- The name of the attribute to get the value for.public void setAttribute(String key, String value)
Particle
setAttribute
in interface Particle
key
- The name of the attribute to set.value
- The value to set.public Type getType()
Particle
public void setType(Type type)
Particle
public void validate(Context context) throws org.apache.xmlbeans.XmlException
Particle
public Particle.ParticleType getPType()
Particle
Copyright © 2019. All Rights Reserved.