org.jbind.xml.schema.cmp
Class AttrGroupDecl

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.AttrGroupDecl
All Implemented Interfaces:
IAttrGroupDecl, IAttrGroupDesc, IComponent, IHasBindingAttributes, IHasLocation, ISourceInfo

public class AttrGroupDecl
extends Component
implements IAttrGroupDecl


Constructor Summary
AttrGroupDecl(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName)
           
 
Method Summary
 void accept(IComponentVisitor aVisitor)
          Accepts a visitor.
 void add(IAttrGroupRef anAttrGroupRef, int anIndex, IConstraintViolations aViolations)
           
 void add(IAttrRefOrDecl anAttribute, IConstraintViolations aViolations)
          Adds an attribute.
 void add(IAttrWildcard aWildcard, IConstraintViolations aViolations)
           
 void collectAttributeInfo(IAttributesModel aModel, IConstraintViolations aViolations)
          Recursively collects the attribute information containted in this attribute and group and all contained referenced attribute groups.
 ISymbolspace getSymbolspace()
          Gets the symbol space.
 boolean isReference()
          Checks if this component is defined as a reference to another component.
 boolean isTopLevelComponent()
          Checks if the component is a top level component.
 void validate(IConstraintViolations aViolations)
          Validates the component.
 
Methods inherited from class org.jbind.xml.schema.cmp.Component
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, setBindings, setParentComponent, visitSubComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, isAnonymous, setBindings, setParentComponent
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 

Constructor Detail

AttrGroupDecl

public AttrGroupDecl(ISourceInfo aSourceInfo,
                     java.lang.String aNamespace,
                     java.lang.String aName)
Method Detail

getSymbolspace

public ISymbolspace getSymbolspace()
Description copied from interface: IComponent
Gets the symbol space. A component that is not anonymous has a symbol space.

Specified by:
getSymbolspace in interface IComponent
Returns:
(optional).

isReference

public boolean isReference()
Description copied from interface: IComponent
Checks if this component is defined as a reference to another component.

Specified by:
isReference in interface IComponent
Returns:
Returns true iff this component is a reference to another component.

accept

public void accept(IComponentVisitor aVisitor)
            throws XmlException
Description copied from interface: IComponent
Accepts a visitor. The implementation calls the corresponding visitXXXStart and vistXXXEnd methods of the visitor (e.g. visitComplexTypeStart and visitComplexTypeEnd).

Specified by:
accept in interface IComponent
Parameters:
aVisitor - (required).
Throws:
XmlException

add

public void add(IAttrWildcard aWildcard,
                IConstraintViolations aViolations)
Specified by:
add in interface IAttrGroupDecl

add

public void add(IAttrRefOrDecl anAttribute,
                IConstraintViolations aViolations)
Description copied from interface: IAttrGroupDecl
Adds an attribute.

Specified by:
add in interface IAttrGroupDecl
Parameters:
anAttribute - (required).
aViolations - (required).

add

public void add(IAttrGroupRef anAttrGroupRef,
                int anIndex,
                IConstraintViolations aViolations)
Specified by:
add in interface IAttrGroupDecl

collectAttributeInfo

public void collectAttributeInfo(IAttributesModel aModel,
                                 IConstraintViolations aViolations)
Description copied from interface: IAttrGroupDecl
Recursively collects the attribute information containted in this attribute and group and all contained referenced attribute groups.

Specified by:
collectAttributeInfo in interface IAttrGroupDecl
Parameters:
aModel - (required). The attributes model that contains the collected information.
aViolations - (required).

validate

public void validate(IConstraintViolations aViolations)
Description copied from interface: IComponent
Validates the component. This method is called as the last step of the component construction.

Specified by:
validate in interface IComponent
Parameters:
aViolations - (required).

isTopLevelComponent

public boolean isTopLevelComponent()
Description copied from interface: IComponent
Checks if the component is a top level component. Top level components are direct children of a schema element or of a redefine element.

Specified by:
isTopLevelComponent in interface IComponent
Overrides:
isTopLevelComponent in class Component