public class XSDComposition extends java.util.Vector<XSDParticle> implements XSDParticle
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL
cType is one of this.
|
static java.lang.String |
anonymousTypeName
This is the default value for type names.
|
static int |
CHOICE
The Constant CHOICE.
|
static int |
EMPTY
The Constant EMPTY.
|
static int |
SEQUENCE
The Constant SEQUENCE.
|
static int |
UNBOUNDED
The Constant UNBOUNDED.
|
| Constructor and Description |
|---|
XSDComposition(int type,
int minOccurs,
int maxOccurs)
Creates an XSDCompositor programatically.
|
XSDComposition(com.saxonica.schema.UserComplexType uct,
DTSContainer dts,
int minOccurs,
int maxOccurs)
Instantiates a new XSD composition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAttribute(XSDAttributeDefinition newAttribute)
Adds an attribute definition to this complex type definition
Attributes are internally stored in a HashSet so no duplicate
attribute definitions are allowed.
|
static XSDComposition |
createCompositor(DTSContainer dts,
net.sf.saxon.om.NodeInfo node)
Creates an XSDCompositor structure from a NodeInfo node
pointing to the first XSDCompositor element (xsd:all, xsd:choice or xsd:sequence)
Return null if the XSDCompositor structure cannot be created.
|
boolean |
delAttribute(XSDAttributeDefinition attribute)
Removed an attribute definition to this complex type definition
Attributes are internally stored in a HashSet so no duplicate
attribute definition are allowed.
|
java.util.Collection<org.jdom.Element> |
generateAttributeDecls(org.jdom.Namespace xsNs)
Generate attribute decls.
|
org.jdom.Element |
generateElement(org.jdom.Namespace xsNs)
Creates the structure to be serialized as tuple content.
|
int |
getMaxoccurs()
value of the maxOccurs.
|
int |
getMinoccurs()
value of the minOccurs.
|
int |
getType()
one of ALL, CHOICE or SEQUENCE.
|
int |
setMaxoccurs(int newValue)
Sets the value of the maxOccurs on this particle.
|
int |
setMinoccurs(int newValue)
Sets the value of the minOccurs on this particle.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSizepublic static final int UNBOUNDED
public static final java.lang.String anonymousTypeName
public static final int ALL
public static final int CHOICE
public static final int SEQUENCE
public static final int EMPTY
public XSDComposition(int type,
int minOccurs,
int maxOccurs)
type - int ALL, CHOICE or SEQUENCEminOccurs - int (default is 1)maxOccurs - int (default is 1) (use -1 for unbounded)public XSDComposition(com.saxonica.schema.UserComplexType uct,
DTSContainer dts,
int minOccurs,
int maxOccurs)
uct - the uctdts - the dtsminOccurs - the min occursmaxOccurs - the max occurspublic static XSDComposition createCompositor(DTSContainer dts, net.sf.saxon.om.NodeInfo node)
dts - the dtsnode - the nodepublic int getType()
public int getMaxoccurs()
getMaxoccurs in interface XSDParticlepublic int setMaxoccurs(int newValue)
XSDParticlesetMaxoccurs in interface XSDParticlenewValue - the new value to setpublic int getMinoccurs()
getMinoccurs in interface XSDParticlepublic int setMinoccurs(int newValue)
XSDParticlesetMinoccurs in interface XSDParticlenewValue - the new value to setpublic org.jdom.Element generateElement(org.jdom.Namespace xsNs)
throws XBRLSerializationException
generateElement in interface XSDParticlexsNs - the xs nsXBRLSerializationException - the XBRL serialization exceptionpublic java.util.Collection<org.jdom.Element> generateAttributeDecls(org.jdom.Namespace xsNs)
throws XBRLSerializationException
xsNs - the xs nsXBRLSerializationException - the XBRL serialization exceptionpublic boolean addAttribute(XSDAttributeDefinition newAttribute)
newAttribute - XSDAttributeDefinitionpublic boolean delAttribute(XSDAttributeDefinition attribute)
attribute - the attribute