|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<XSDParticle>
com.ihr.xbrl.om.taxonomy.XSDComposition
public class XSDComposition
This class represents the content model for tuples. A Tuple contains one XSDCompositor extracted from its data type or generated programaticaly
| Field Summary | |
|---|---|
static int |
ALL
cType is one of this |
static java.lang.String |
anonymousTypeName
This is the default value for type names |
static int |
CHOICE
|
static int |
EMPTY
|
static int |
SEQUENCE
|
static int |
UNBOUNDED
|
| Constructor Summary | |
|---|---|
XSDComposition(int type,
int minOccurs,
int maxOccurs)
Creates an XSDCompositor programatically |
|
XSDComposition(com.saxonica.schema.UserComplexType uct,
DTSContainer dts,
int minOccurs,
int maxOccurs)
|
|
| Method Summary | |
|---|---|
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)
|
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 |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public static XSDComposition createCompositor(DTSContainer dts,
net.sf.saxon.om.NodeInfo node)
node - public int getType()
public int getMaxoccurs()
getMaxoccurs in interface XSDParticlepublic int setMaxoccurs(int newValue)
XSDParticle
setMaxoccurs in interface XSDParticlenewValue - the new value to set
public int getMinoccurs()
getMinoccurs in interface XSDParticlepublic int setMinoccurs(int newValue)
XSDParticle
setMinoccurs in interface XSDParticlenewValue - the new value to set
public org.jdom.Element generateElement(org.jdom.Namespace xsNs)
throws XBRLSerializationException
generateElement in interface XSDParticlexsNs - namespace
XBRLSerializationException
public java.util.Collection<org.jdom.Element> generateAttributeDecls(org.jdom.Namespace xsNs)
throws XBRLSerializationException
XBRLSerializationExceptionpublic boolean addAttribute(XSDAttributeDefinition newAttribute)
newAttribute - XSDAttributeDefinition
public boolean delAttribute(XSDAttributeDefinition attribute)
attribute -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||