import org.w3._2001.xmlschema.AttributeGroup;\r
import org.w3._2001.xmlschema.AttributeGroupRef;\r
import org.w3._2001.xmlschema.ComplexType;\r
import org.w3._2001.xmlschema.Element;\r
import org.w3._2001.xmlschema.NamedAttributeGroup;\r
import org.w3._2001.xmlschema.AttributeGroup;\r
import org.w3._2001.xmlschema.AttributeGroupRef;\r
import org.w3._2001.xmlschema.ComplexType;\r
import org.w3._2001.xmlschema.Element;\r
import org.w3._2001.xmlschema.NamedAttributeGroup;\r
import org.w3._2001.xmlschema.OpenAttrs;\r
import org.w3._2001.xmlschema.SimpleType;\r
\r
public class SchemaObject {\r
import org.w3._2001.xmlschema.OpenAttrs;\r
import org.w3._2001.xmlschema.SimpleType;\r
\r
public class SchemaObject {\r
- enum ObjectType{ELEMENT,COMPLEX_TYPE,SIMPLE_TYPE,ATTRIBUTE_GROUP};\r
+ enum ObjectType{ELEMENT,COMPLEX_TYPE,SIMPLE_TYPE,ATTRIBUTE_GROUP,MODEL_GROUP};\r
public SchemaObject(ComplexType complexType) {\r
this(null, complexType);\r
}\r
public SchemaObject(ComplexType complexType) {\r
this(null, complexType);\r
}\r
+ public SchemaObject(SchemaObject parent, NamedGroup namedGroup) {\r
+ this.parent = parent;\r
+ this.obj = namedGroup;\r
+ this.type = ObjectType.MODEL_GROUP;\r
+ }\r
+ \r