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.w3c.dom.Element ; 25 26 30 public class SelectorImpl extends SchemaComponentImpl 31 implements Selector { 32 public SelectorImpl(SchemaModelImpl model) { 33 this(model,createNewComponent(SchemaElements.SELECTOR, model)); 34 } 35 36 public SelectorImpl(SchemaModelImpl model, Element e) { 37 super(model,e); 38 } 39 40 44 public Class <? extends SchemaComponent> getComponentType() { 45 return Selector.class; 46 } 47 48 public void setXPath(String xPath) { 49 setAttribute(XPATH_PROPERTY, SchemaAttributes.XPATH, xPath); 50 } 51 52 public void accept(SchemaVisitor v) { 53 v.visit(this); 54 } 55 56 public String getXPath() { 57 return getAttribute(SchemaAttributes.XPATH); 58 } 59 } 60 | Popular Tags |