1 19 20 package org.netbeans.modules.xml.schema.model; 21 22 import java.util.Collection ; 23 import org.netbeans.modules.xml.schema.model.Derivation.Type; 24 import org.netbeans.modules.xml.xam.dom.NamedComponentReference; 25 26 30 public interface Element extends SchemaComponent{ 31 32 public static final String BLOCK_PROPERTY = "block"; 33 public static final String DEFAULT_PROPERTY = "default"; 34 public static final String FIXED_PROPERTY = "fixed"; 35 public static final String NILLABLE_PROPERTY = "nillable"; 36 public static final String CONSTRAINT_PROPERTY = "constraint"; 37 public static final String REF_PROPERTY = "ref"; 38 39 public enum Block implements Derivation { 40 ALL(Type.ALL), RESTRICTION(Type.RESTRICTION), EXTENSION(Type.EXTENSION), SUBSTITUTION(Type.SUBSTITUTION), EMPTY(Type.EMPTY); 41 private final Type value; 42 Block(Type value) { this.value = value; } 43 public String toString() { return value.toString(); } 44 } 45 46 47 String getDefault(); 48 void setDefault(String defaultValue); 49 50 String getFixed(); 51 void setFixed(String fixed); 52 53 Boolean isNillable(); 54 void setNillable(Boolean nillable); 55 boolean getNillableDefault(); 56 boolean getNillableEffective(); 57 58 Collection <Constraint> getConstraints(); 59 void addConstraint(Constraint c); 60 void removeConstraint(Constraint c); 61 } 62 | Popular Tags |