1 19 20 package org.netbeans.modules.xml.schema.model.impl; 21 22 import org.netbeans.modules.xml.schema.model.*; 23 import org.netbeans.modules.xml.schema.model.visitor.SchemaVisitor; 24 import org.netbeans.modules.xml.xam.dom.NamedComponentReference; 25 import org.w3c.dom.Element ; 26 27 31 public class AttributeGroupReferenceImpl extends SchemaComponentImpl 32 implements AttributeGroupReference { 33 public AttributeGroupReferenceImpl(SchemaModelImpl model) { 34 this(model,createNewComponent(SchemaElements.ATTRIBUTE_GROUP,model)); 35 } 36 37 public AttributeGroupReferenceImpl(SchemaModelImpl model, Element e) { 38 super(model,e); 39 } 40 41 45 public Class <? extends SchemaComponent> getComponentType() { 46 return AttributeGroupReference.class; 47 } 48 49 public void accept(SchemaVisitor v) { 50 v.visit(this); 51 } 52 53 public void setGroup(NamedComponentReference<GlobalAttributeGroup> group) { 54 setAttribute(GROUP_PROPERTY, SchemaAttributes.REF, group); 55 } 56 57 public NamedComponentReference<GlobalAttributeGroup> getGroup() { 58 return resolveGlobalReference(GlobalAttributeGroup.class, SchemaAttributes.REF); 59 60 } 61 } 62 | Popular Tags |