1 22 23 package org.xquark.schema; 24 25 import java.util.ArrayList ; 26 import java.util.Collection ; 27 28 43 public final class AttributeGroupDefinition extends SchemaComponent 44 { 45 private static final String RCSRevision = "$Revision: 1.1 $"; 46 private static final String RCSName = "$Name: $"; 47 48 private ArrayList contents = new ArrayList (); 49 private Wildcard attributeWildcard = null; 50 51 57 public AttributeGroupDefinition(Schema schema, String name) { 58 super(schema, name); 59 } 60 61 public void accept(SchemaVisitor visitor) throws SchemaException { 62 visitor.visit(this); 63 } 64 65 70 public Wildcard getAttributeWildcard() { 71 return attributeWildcard; 72 } 73 74 80 public Collection getContents() { 81 return contents; 82 } 83 84 89 public Collection getAttributeDeclarations() { 90 return contents; 91 } 92 93 public void add(Object declaration) { 94 contents.add(declaration); 95 } 96 97 public boolean attributeFind(Object decl) { 98 if ( contents.indexOf(decl) == -1 ) return false; 99 else return true; 100 } 101 102 public void setAttributeWildcard(Wildcard wildcard) { 103 attributeWildcard = wildcard; 104 } 105 } 106 | Popular Tags |