|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eviware.soapui.impl.wadl.inference.schema.particles.AttributeParticle
public class AttributeParticle
Represents an xs:attribute, with a name, a type, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Particle |
---|
Particle.Factory, Particle.ParticleType |
Constructor Summary | |
---|---|
AttributeParticle(com.eviware.soapui.inferredSchema.AttributeParticleConfig xml,
Schema schema)
|
|
AttributeParticle(Schema schema,
java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String key)
Get the attribute value that corresponds to the given name. |
javax.xml.namespace.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. |
com.eviware.soapui.inferredSchema.AttributeParticleConfig |
save()
|
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set an attribute. |
void |
setType(Type type)
Set the Type of the element or attribute that is described by this particle. |
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeParticle(Schema schema, java.lang.String name)
public AttributeParticle(com.eviware.soapui.inferredSchema.AttributeParticleConfig xml, Schema schema)
Method Detail |
---|
public com.eviware.soapui.inferredSchema.AttributeParticleConfig save()
save
in interface Particle
public java.lang.String getAttribute(java.lang.String key)
Particle
getAttribute
in interface Particle
key
- The name of the attribute to get the value for.
public javax.xml.namespace.QName getName()
Particle
getName
in interface Particle
public Type getType()
Particle
getType
in interface Particle
public void setAttribute(java.lang.String key, java.lang.String value)
Particle
setAttribute
in interface Particle
key
- The name of the attribute to set.value
- The value to set.public void setType(Type type)
Particle
setType
in interface Particle
type
- The Type to set.public void validate(Context context) throws org.apache.xmlbeans.XmlException
Particle
validate
in interface Particle
context
- A Context object containing the XML data to be validated, and
other needed contextual variables.
org.apache.xmlbeans.XmlException
- On unresolvable validation error.public java.lang.String toString()
toString
in class java.lang.Object
public Particle.ParticleType getPType()
Particle
getPType
in interface Particle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |