1 19 20 package org.netbeans.modules.xml.schema.model.impl; 21 22 import org.netbeans.modules.xml.schema.model.All; 23 import org.netbeans.modules.xml.schema.model.LocalElement; 24 import org.netbeans.modules.xml.schema.model.SchemaComponent; 25 import org.netbeans.modules.xml.schema.model.visitor.SchemaVisitor; 26 import org.w3c.dom.Element ; 27 28 32 public class LocalElementImpl extends LocalElementBaseImpl 33 implements LocalElement { 34 35 public LocalElementImpl(SchemaModelImpl model) { 36 this(model,createNewComponent(SchemaElements.ELEMENT,model)); 37 } 38 39 42 public LocalElementImpl(SchemaModelImpl model, Element el) { 43 super(model, el); 44 } 45 46 50 public Class <? extends SchemaComponent> getComponentType() { 51 return LocalElement.class; 52 } 53 54 public void accept(SchemaVisitor v) { 55 v.visit(this); 56 } 57 58 63 public boolean allowsFullMultiplicity() { 64 return !(getParent() instanceof All); 65 } 66 67 } 68 | Popular Tags |