1 19 20 package org.netbeans.modules.xml.schema.model; 21 22 import java.util.Set ; 23 import org.netbeans.modules.xml.schema.model.Derivation.Type; 24 import org.netbeans.modules.xml.xam.dom.NamedComponentReference; 25 import org.netbeans.modules.xml.xam.Nameable; 26 27 31 public interface GlobalElement extends Element, ReferenceableSchemaComponent, 32 NameableSchemaComponent, TypeContainer { 33 public static final String FINAL_PROPERTY = "final"; 34 public static final String ABSTRACT_PROPERTY = "abstract"; 35 public static final String SUBSTITUTION_GROUP_PROPERTY = "substitutionGroup"; 36 37 Set <Block> getBlock(); 38 void setBlock(Set <Block> block); 39 Set <Block> getBlockDefault(); 40 Set <Block> getBlockEffective(); 41 42 43 44 Boolean isAbstract(); 45 void setAbstract(Boolean abstr); 46 boolean getAbstractDefault(); 47 boolean getAbstractEffective(); 48 49 public enum Final implements Derivation { 50 ALL(Type.ALL), RESTRICTION(Type.RESTRICTION), EXTENSION(Type.EXTENSION), 51 EMPTY(Type.EMPTY); 52 private Derivation.Type value; 53 Final(Derivation.Type v) { value = v; } 54 public String toString() { return value.toString(); } 55 } 56 57 Set <Final> getFinal(); 58 void setFinal(Set <Final> finalValue); 59 62 Set <Final> getFinalDefault(); 63 Set <Final> getFinalEffective(); 64 65 NamedComponentReference<GlobalElement> getSubstitutionGroup(); 66 void setSubstitutionGroup(NamedComponentReference<GlobalElement> element); 67 68 } 69 | Popular Tags |