org.jbind.xml.schema.element
Class Import

java.lang.Object
  extended byorg.jbind.xml.schema.element.Parent
      extended byorg.jbind.xml.schema.element.Element
          extended byorg.jbind.xml.schema.element.OpenAttributes
              extended byorg.jbind.xml.schema.element.Annotated
                  extended byorg.jbind.xml.schema.element.AdditionalSource
                      extended byorg.jbind.xml.schema.element.Import
All Implemented Interfaces:
IAdditionalSource, IAnnotated, IElement, IHasBindingAttributes, IHasLocation, IImport, IImportJobHelper, IJobHelper, INode, IOpenAttributes, IParent, ISourceInfo, ISourceJobHelper, ITopLevelJobHelper, IXmlElement, IXmlNode

public class Import
extends AdditionalSource
implements IImport


Constructor Summary
Import(CreationParams aCreationParams)
           
 
Method Summary
 void createAndAddJob(IHasTopLevelJobs aSchemaJob)
          Creates a job for this helper and adds it to the schema job.
protected  IAttribute doCreateAttribute(ACParams anACParams)
          Hook method to create an attribute.
 java.lang.String getLocalStringBindingAttribute(java.lang.String aName)
          Gets a string valued local binding attribute.
 java.lang.String getNamespace()
          Gets the imported namespace.
 java.lang.String getStringBindingAttribute(java.lang.String aName)
          Gets a string valued binding attribute.
 
Methods inherited from class org.jbind.xml.schema.element.AdditionalSource
getSchemaLocation
 
Methods inherited from class org.jbind.xml.schema.element.Annotated
doCreateChild, getAnnotation, getAnnotationElement, getId, iterAppInfos, validateElement
 
Methods inherited from class org.jbind.xml.schema.element.OpenAttributes
getAttributeString
 
Methods inherited from class org.jbind.xml.schema.element.Element
acceptAppInfoVisitor, addAttribute, createChild, createGlobalRef, getAttributes, getBindingAttribute, getBoolean, getChildByClass, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalName, getLocation, getNamespace, getNamespaceUri, getParent_, getParentHelper, getPrefix, getPrefixToNamespaceMapping, getQName, getSchema, getSchemaDocument, getSchemaElement, getSubElement, getTargetNamespace, isTopLevelComponent, iterChildrenByClass, setLocation, setParent_, toString
 
Methods inherited from class org.jbind.xml.schema.element.Parent
addChild, hasChildren, iterChildren, iterXmlNodes, visitChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.schema.element.IAnnotated
getAnnotationElement, getId
 
Methods inherited from interface org.jbind.xml.schema.element.IOpenAttributes
getAttributeString
 
Methods inherited from interface org.jbind.xml.schema.element.IElement
addAttribute, createChild, getQName, getSchema, getSchemaDocument, getSubElement, isTopLevelComponent, iterChildrenByClass, validateElement
 
Methods inherited from interface org.jbind.xml.schema.element.IParent
addChild, hasChildren, iterChildren
 
Methods inherited from interface org.jbind.xml.schema.element.INode
getParent_, setLocation, setParent_
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.core.cmp.IXmlNode
acceptAppInfoVisitor
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.core.cmp.IXmlElement
getAttributes, iterXmlNodes
 
Methods inherited from interface org.jbind.xml.schema.instantiation.ISourceJobHelper
getSchemaLocation
 

Constructor Detail

Import

public Import(CreationParams aCreationParams)
Method Detail

doCreateAttribute

protected IAttribute doCreateAttribute(ACParams anACParams)
                                throws XmlException
Description copied from class: Element
Hook method to create an attribute.

Overrides:
doCreateAttribute in class AdditionalSource
Throws:
XmlException

getNamespace

public java.lang.String getNamespace()
Description copied from interface: IImportJobHelper
Gets the imported namespace.

Specified by:
getNamespace in interface IImportJobHelper
Returns:
(required). A namespace. If the namespace attribute is not specified then INamespaces.NO is returned.

createAndAddJob

public void createAndAddJob(IHasTopLevelJobs aSchemaJob)
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).

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
Overrides:
getStringBindingAttribute in class Element

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
Overrides:
getLocalStringBindingAttribute in class Element