org.jbind.xml.schema.element
Class AttributesModelGroupCreator

java.lang.Object
  extended byorg.jbind.xml.schema.element.AttributesModelGroupCreator
All Implemented Interfaces:
IComponentJobHelper, IHasBindingAttributes, IHasLocation, IJobHelper, ISchemaDataAdder, ITopLevelJobHelper

public class AttributesModelGroupCreator
extends java.lang.Object
implements IComponentJobHelper


Constructor Summary
AttributesModelGroupCreator(IAttributeInfos anAttributeInfos)
           
 
Method Summary
 void addSchemaData(IComponentStore aComponentStore, IComponent aComponent, IConstraintViolations aViolations)
          Adds data from the schema to the specified component.
 void collectRefsForCompletion(IElementHelper anElementHelper, IJobRefs aJobRefs)
           
 void collectRefsForCreation(IJobRefs aJobRefs)
           
 void collectRefsForValidation(IElementHelper anElementHelper, IJobRefs aJobRefs)
           
 void completeComponent(IElementHelper anElementHelper, IComponent aComponent, IConstraintViolations aViolations)
           
 void createAndAddJob(IHasTopLevelJobs aHasTopLevelJobs)
          Creates a job for this helper and adds it to the schema job.
 IComponent createComponent(IElementHelper anElementHelper, IConstraintViolations aViolations)
           
 IAttribute getBindingAttribute(java.lang.String aName)
          Gets the specified binding attribute.
 IAttribute getDefaultedLocalBindingAttribute(java.lang.String aName)
          Gets a local binding attribute.
 java.lang.String getDefaultedLocalStringBindingAttribute(java.lang.String aName)
          Gets a string valued defaulted local binding attribute.
 IAttribute getLocalBindingAttribute(java.lang.String aName)
          Gets a local binding attribute.
 java.lang.String getLocalStringBindingAttribute(java.lang.String aName)
          Gets a string valued local binding attribute.
 ILocation getLocation()
           
 java.lang.String getName()
           
 java.lang.String getStringBindingAttribute(java.lang.String aName)
          Gets a string valued binding attribute.
 ISymbolspace getSymbolSpace()
           
 boolean isTopLevelComponent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesModelGroupCreator

public AttributesModelGroupCreator(IAttributeInfos anAttributeInfos)
Method Detail

collectRefsForCreation

public void collectRefsForCreation(IJobRefs aJobRefs)
Specified by:
collectRefsForCreation in interface IComponentJobHelper

collectRefsForCompletion

public void collectRefsForCompletion(IElementHelper anElementHelper,
                                     IJobRefs aJobRefs)
Specified by:
collectRefsForCompletion in interface IComponentJobHelper

collectRefsForValidation

public void collectRefsForValidation(IElementHelper anElementHelper,
                                     IJobRefs aJobRefs)
Specified by:
collectRefsForValidation in interface IComponentJobHelper

createComponent

public IComponent createComponent(IElementHelper anElementHelper,
                                  IConstraintViolations aViolations)
Specified by:
createComponent in interface IComponentJobHelper

completeComponent

public void completeComponent(IElementHelper anElementHelper,
                              IComponent aComponent,
                              IConstraintViolations aViolations)
Specified by:
completeComponent in interface IComponentJobHelper

addSchemaData

public void addSchemaData(IComponentStore aComponentStore,
                          IComponent aComponent,
                          IConstraintViolations aViolations)
Description copied from interface: ISchemaDataAdder
Adds data from the schema to the specified component. Schema data are default and fixed values as well as facets.

Specified by:
addSchemaData in interface ISchemaDataAdder

createAndAddJob

public void createAndAddJob(IHasTopLevelJobs aHasTopLevelJobs)
Description copied from interface: ITopLevelJobHelper
Creates a job for this helper and adds it to the schema job. This method is used by a schema element when it creates the sub jobs of a schema job.

Specified by:
createAndAddJob in interface ITopLevelJobHelper
Returns:
(required).

getBindingAttribute

public IAttribute getBindingAttribute(java.lang.String aName)
Description copied from interface: IHasBindingAttributes
Gets the specified binding attribute. The attribute may be searched in different contexts (for example a schema component may asked its ancestor component and its schema for the specified attribute. The the first occurence is returned.

Specified by:
getBindingAttribute in interface IHasBindingAttributes
Parameters:
aName - (required)
Returns:
(optional).

getLocalBindingAttribute

public IAttribute getLocalBindingAttribute(java.lang.String aName)
Description copied from interface: IHasBindingAttributes
Gets a local binding attribute.

Specified by:
getLocalBindingAttribute in interface IHasBindingAttributes
Parameters:
aName - (required)
Returns:
(optional).

getDefaultedLocalBindingAttribute

public IAttribute getDefaultedLocalBindingAttribute(java.lang.String aName)
Description copied from interface: IHasBindingAttributes
Gets a local binding attribute. If the binding attribute is not specified locally then a default value is looked for. Default values can be specified on schema elements. If a schema is included by another schema then the default values of the parent schema are considered too.

Specified by:
getDefaultedLocalBindingAttribute in interface IHasBindingAttributes
Parameters:
aName - (required)
Returns:
(optional).

getLocalStringBindingAttribute

public java.lang.String getLocalStringBindingAttribute(java.lang.String aName)
Description copied from interface: IHasBindingAttributes
Gets a string valued local binding attribute.

Specified by:
getLocalStringBindingAttribute in interface IHasBindingAttributes
Parameters:
aName - (required).
Returns:
(optional).

getDefaultedLocalStringBindingAttribute

public java.lang.String getDefaultedLocalStringBindingAttribute(java.lang.String aName)
Description copied from interface: IHasBindingAttributes
Gets a string valued defaulted local binding attribute.

Specified by:
getDefaultedLocalStringBindingAttribute in interface IHasBindingAttributes
Parameters:
aName - (required).
Returns:
(optional).

getLocation

public ILocation getLocation()
Specified by:
getLocation in interface IHasLocation

getName

public java.lang.String getName()
Specified by:
getName in interface IComponentJobHelper

getStringBindingAttribute

public java.lang.String getStringBindingAttribute(java.lang.String aName)
Description copied from interface: IHasBindingAttributes
Gets a string valued binding attribute.

Specified by:
getStringBindingAttribute in interface IHasBindingAttributes
Parameters:
aName - (required).
Returns:
(optional).

getSymbolSpace

public ISymbolspace getSymbolSpace()
Specified by:
getSymbolSpace in interface IComponentJobHelper

isTopLevelComponent

public boolean isTopLevelComponent()
Specified by:
isTopLevelComponent in interface IComponentJobHelper