|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.javascript.ParticleInfo
public final class ParticleInfo
All the information needed to create the JavaScript for an Xml Schema element or xs:any.
Method Summary | |
---|---|
static ParticleInfo |
forGlobalElement(org.apache.ws.commons.schema.XmlSchemaElement element,
org.apache.ws.commons.schema.XmlSchema currentSchema,
SchemaCollection schemaCollection,
NamespacePrefixAccumulator prefixAccumulator)
Create an elementInfo that stores information about a global, named, element. |
static ParticleInfo |
forLocalItem(org.apache.ws.commons.schema.XmlSchemaObject sequenceObject,
org.apache.ws.commons.schema.XmlSchema currentSchema,
SchemaCollection schemaCollection,
NamespacePrefixAccumulator prefixAccumulator,
QName contextName)
Fill in an ElementInfo for an element or xs:any from a sequence. |
static ParticleInfo |
forPartElement(org.apache.ws.commons.schema.XmlSchemaElement element,
SchemaCollection schemaCollection,
String javascriptName,
String xmlElementName)
Create element information for a part element. |
org.apache.ws.commons.schema.XmlSchemaType |
getContainingType()
|
QName |
getControllingName()
As a general rule, the JavaScript code is organized by types. |
String |
getDefaultValue()
* |
String |
getJavascriptName()
|
long |
getMaxOccurs()
|
long |
getMinOccurs()
|
org.apache.ws.commons.schema.XmlSchemaParticle |
getParticle()
|
org.apache.ws.commons.schema.XmlSchemaType |
getType()
|
String |
getXmlName()
|
boolean |
isAny()
|
boolean |
isAnyType()
|
boolean |
isArray()
|
boolean |
isEmpty()
|
boolean |
isGlobal()
True if this describes a global, named, element. |
boolean |
isNillable()
|
boolean |
isOptional()
|
void |
setContainingType(org.apache.ws.commons.schema.XmlSchemaType containingType)
|
void |
setDefaultValue(String defaultValue)
|
void |
setEmpty(boolean empty)
|
void |
setJavascriptName(String name)
|
void |
setType(org.apache.ws.commons.schema.XmlSchemaType type)
|
void |
setXmlName(String elementXmlName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ParticleInfo forGlobalElement(org.apache.ws.commons.schema.XmlSchemaElement element, org.apache.ws.commons.schema.XmlSchema currentSchema, SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator)
element
- the elementcurrentSchema
- the schema it came from.schemaCollection
- the collection of all schemas.prefixAccumulator
- the accumulator that assigns prefixes.
public static ParticleInfo forPartElement(org.apache.ws.commons.schema.XmlSchemaElement element, SchemaCollection schemaCollection, String javascriptName, String xmlElementName)
element
- the element, or nullschemaCollection
- the schema collection, for resolving types.javascriptName
- javascript variable namexmlElementName
- xml element string
public static ParticleInfo forLocalItem(org.apache.ws.commons.schema.XmlSchemaObject sequenceObject, org.apache.ws.commons.schema.XmlSchema currentSchema, SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator, QName contextName)
sequenceElement
- currentSchema
- schemaCollection
- prefixAccumulator
-
public QName getControllingName()
public org.apache.ws.commons.schema.XmlSchemaParticle getParticle()
public String getJavascriptName()
getJavascriptName
in interface ItemInfo
public void setJavascriptName(String name)
public String getXmlName()
public void setXmlName(String elementXmlName)
public org.apache.ws.commons.schema.XmlSchemaType getContainingType()
public void setContainingType(org.apache.ws.commons.schema.XmlSchemaType containingType)
public org.apache.ws.commons.schema.XmlSchemaType getType()
getType
in interface ItemInfo
public void setType(org.apache.ws.commons.schema.XmlSchemaType type)
public boolean isEmpty()
public void setEmpty(boolean empty)
public long getMinOccurs()
public long getMaxOccurs()
public boolean isArray()
isArray
in interface ItemInfo
public boolean isOptional()
isOptional
in interface ItemInfo
public boolean isNillable()
isNillable
in interface ItemInfo
public boolean isAny()
isAny
in interface ItemInfo
public boolean isAnyType()
public String getDefaultValue()
getDefaultValue
in interface ItemInfo
public void setDefaultValue(String defaultValue)
setDefaultValue
in interface ItemInfo
defaultValue
- The defaultValue to set.public boolean isGlobal()
public String toString()
toString
in class Object
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |