1 19 20 28 29 package org.netbeans.modules.xml.schema.model.impl; 30 31 import org.netbeans.modules.xml.schema.model.SchemaComponent; 32 import org.netbeans.modules.xml.schema.model.Unique; 33 import org.netbeans.modules.xml.schema.model.visitor.SchemaVisitor; 34 import org.w3c.dom.Element ; 35 36 41 public class UniqueImpl extends ConstraintImpl implements Unique { 42 43 46 public UniqueImpl(SchemaModelImpl model) { 47 this(model, createNewComponent(SchemaElements.UNIQUE,model)); 48 } 49 50 53 public UniqueImpl(SchemaModelImpl model, Element el) { 54 super(model, el); 55 } 56 57 61 public Class <? extends SchemaComponent> getComponentType() { 62 return Unique.class; 63 } 64 65 68 public void accept(SchemaVisitor visitor) { 69 visitor.visit(this); 70 } 71 } 72 | Popular Tags |