fr.tireme.schemadoc.SDSchema.XSD
Class XSDModelGroupWrapp

java.lang.Object
  extended by fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
      extended by fr.tireme.schemadoc.SDSchema.XSD.XSDModelGroupWrapp
All Implemented Interfaces:
SDConcreteComponent, SDGroupContent

public class XSDModelGroupWrapp
extends SDConcreteComponentImpl
implements SDGroupContent

Author:
Mike Niemaz (niemaz@xrce.xerox.com)

Constructor Summary
XSDModelGroupWrapp(org.eclipse.xsd.XSDModelGroup xsdModelGroup_)
          Constructor for the SchemaGroup object
 
Method Summary
 SDConcreteComponent cloneObject()
          Deep copy of the simple type
 java.util.List getContents()
          Gets the content of this group content model.
 SDAnnotation getSchemaAnnotation()
          Returns the annotation on this group content model
 boolean isChoice()
          Indicates if this group content model is a choice
 boolean isEmpty()
          Gets the group emptyness
 boolean isSequence()
          Indicates if this group content model is a sequence
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Constructor Detail

XSDModelGroupWrapp

public XSDModelGroupWrapp(org.eclipse.xsd.XSDModelGroup xsdModelGroup_)
Constructor for the SchemaGroup object

Parameters:
xsdModelGroup_ - - the eclipse xsd group content model object to wrap
Method Detail

cloneObject

public SDConcreteComponent cloneObject()
Deep copy of the simple type

Specified by:
cloneObject in interface SDConcreteComponent
Overrides:
cloneObject in class SDConcreteComponentImpl
Returns:
SDSimpleType - cloned simple type

isSequence

public boolean isSequence()
Indicates if this group content model is a sequence

Specified by:
isSequence in interface SDGroupContent
Returns:
boolean - true if this group content model is a sequence

isChoice

public boolean isChoice()
Indicates if this group content model is a choice

Specified by:
isChoice in interface SDGroupContent
Returns:
boolean - true if this group content model is a choice

getContents

public java.util.List getContents()
Gets the content of this group content model. Its value is stored and thus calculated only on the first call.

Specified by:
getContents in interface SDGroupContent
Returns:
List - an iterator of schemaParticles

isEmpty

public boolean isEmpty()
Gets the group emptyness

Specified by:
isEmpty in interface SDGroupContent
Returns:
boolean - true if empty, false otherwise

getSchemaAnnotation

public SDAnnotation getSchemaAnnotation()
Returns the annotation on this group content model

Specified by:
getSchemaAnnotation in interface SDGroupContent
Returns:
SDAnnotation - The annotation, or null if there is no annotation.