Modifier and Type | Method and Description |
---|---|
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.
|
List<ParticleInfo> |
getChildren() |
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 |
isGroup() |
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() |
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 stringpublic 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()
public void setType(org.apache.ws.commons.schema.XmlSchemaType type)
public boolean isGroup()
public List<ParticleInfo> getChildren()
public boolean isEmpty()
public void setEmpty(boolean empty)
public long getMinOccurs()
public long getMaxOccurs()
public boolean isOptional()
isOptional
in interface ItemInfo
public boolean isNillable()
isNillable
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()
Apache CXF