1 19 20 package org.netbeans.modules.xml.schema.model.impl; 21 22 import org.netbeans.modules.xml.schema.model.Length; 23 import org.netbeans.modules.xml.schema.model.SchemaComponent; 24 import org.netbeans.modules.xml.schema.model.visitor.SchemaVisitor; 25 import org.w3c.dom.Element ; 26 27 31 public class LengthImpl extends CommonLength implements Length { 32 33 public LengthImpl(SchemaModelImpl model) { 34 this(model,createNewComponent(SchemaElements.LENGTH,model)); 35 } 36 37 38 public LengthImpl(SchemaModelImpl model, Element e) { 39 super(model, e); 40 } 41 42 46 public Class <? extends SchemaComponent> getComponentType() { 47 return Length.class; 48 } 49 50 public void accept(SchemaVisitor visitor) { 51 visitor.visit(this); 52 } 53 54 public String getComponentName() { 55 return SchemaElements.LENGTH.getName(); 56 } 57 } 58 | Popular Tags |