Module org.eclipse.persistence.core
Class Choice
java.lang.Object
org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle
org.eclipse.persistence.internal.oxm.schema.model.Choice
- All Implemented Interfaces:
NestedParticle
,TypeDefParticleOwner
Purpose: Class to represent a Choice in a Schema
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addElement
(Element elem) void
addSequence
(Sequence sequence) boolean
hasAny()
boolean
isEmpty()
void
void
setChoices
(List<Choice> choices) void
setElements
(List<Element> elements) void
setNestedParticles
(List<NestedParticle> nestedParticles) void
setOrderedElements
(List newElements) void
setOwner
(TypeDefParticleOwner owner) void
setSequences
(List<Sequence> sequences) Methods inherited from class org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle
getElements, getMaxOccurs, getMinOccurs, getOwner, getOwnerName, setMaxOccurs, setMinOccurs
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.internal.oxm.schema.model.NestedParticle
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs
-
Field Details
-
orderedElements
-
-
Constructor Details
-
Choice
public Choice()
-
-
Method Details
-
getOrderedElements
-
setOrderedElements
-
setSequences
- Specified by:
setSequences
in interfaceNestedParticle
-
setChoices
- Specified by:
setChoices
in interfaceNestedParticle
-
setNestedParticles
-
addSequence
- Specified by:
addSequence
in interfaceNestedParticle
-
addChoice
- Specified by:
addChoice
in interfaceNestedParticle
-
addElement
- Specified by:
addElement
in interfaceNestedParticle
- Overrides:
addElement
in classTypeDefParticle
-
addAny
- Specified by:
addAny
in interfaceNestedParticle
-
setElements
- Specified by:
setElements
in interfaceNestedParticle
- Overrides:
setElements
in classTypeDefParticle
-
setAnys
- Specified by:
setAnys
in interfaceNestedParticle
-
hasAny
public boolean hasAny()- Specified by:
hasAny
in interfaceNestedParticle
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceNestedParticle
-
setOwner
- Specified by:
setOwner
in interfaceNestedParticle
- Overrides:
setOwner
in classTypeDefParticle
-