public class XSDElementRef extends java.lang.Object implements XSDParticle
| Constructor and Description |
|---|
XSDElementRef(XMLElementDefinition el,
int minOccurs,
int maxOccurs)
Instantiates a new XSD element ref.
|
| Modifier and Type | Method and Description |
|---|---|
org.jdom.Element |
generateElement(org.jdom.Namespace xsNs)
Generates an XML representation of this particle.
|
XMLElementDefinition |
getElement()
The Element definition of this XSDElement.
|
int |
getMaxoccurs()
Access to the value of the maxOccurs variable on this particle.
|
int |
getMinoccurs()
Access to the value of the minOccurs variable on this particle.
|
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.
|
public XSDElementRef(XMLElementDefinition el, int minOccurs, int maxOccurs)
el - the elminOccurs - the min occursmaxOccurs - the max occurspublic int getMaxoccurs()
XSDParticlegetMaxoccurs in interface XSDParticlepublic int getMinoccurs()
XSDParticlegetMinoccurs in interface XSDParticlepublic int setMaxoccurs(int newValue)
XSDParticlesetMaxoccurs in interface XSDParticlenewValue - the new value to setpublic int setMinoccurs(int newValue)
XSDParticlesetMinoccurs in interface XSDParticlenewValue - the new value to setpublic XMLElementDefinition getElement()
public org.jdom.Element generateElement(org.jdom.Namespace xsNs)
XSDParticlegenerateElement in interface XSDParticlexsNs - namespace