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.ee.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<XMLFragment> |
generateAttributeDecls(DTSContainer dts,
net.sf.saxon.om.NamespaceBinding xsNs)
Generate attribute decls.
|
XMLFragment |
generateElement(DTSContainer dts,
net.sf.saxon.om.NamespaceBinding 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 maxoccurs.
|
int |
setMinoccurs(int newValue)
Sets the minoccurs.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public 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.ee.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 XSDParticle
public int setMaxoccurs(int newValue)
setMaxoccurs
in interface XSDParticle
newValue
- the new valuepublic int getMinoccurs()
getMinoccurs
in interface XSDParticle
public int setMinoccurs(int newValue)
setMinoccurs
in interface XSDParticle
newValue
- the new valuepublic XMLFragment generateElement(DTSContainer dts, net.sf.saxon.om.NamespaceBinding xsNs) throws XBRLSerializationException
generateElement
in interface XSDParticle
dts
- the dtsxsNs
- the xs nsXBRLSerializationException
- the XBRL serialization exceptionpublic java.util.Collection<XMLFragment> generateAttributeDecls(DTSContainer dts, net.sf.saxon.om.NamespaceBinding xsNs) throws XBRLSerializationException
dts
- the dtsxsNs
- the xs nsXBRLSerializationException
- the XBRL serialization exceptionpublic boolean addAttribute(XSDAttributeDefinition newAttribute)
newAttribute
- XSDAttributeDefinitionpublic boolean delAttribute(XSDAttributeDefinition attribute)
attribute
- the attributeCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa