org.jbind.xml.schema.instantiation
Interface ISchemaElement

All Superinterfaces:
IHasBindingAttributes, IHasLocation, IJobHelper, ISchemaJobHelper
All Known Implementing Classes:
SchemaElement

public interface ISchemaElement
extends IHasBindingAttributes, IHasLocation, ISchemaJobHelper


Method Summary
 boolean addElementId(java.lang.String anId)
          Adds the id of a schema element.
 void createJobs(IHasTopLevelJobs aHasTopLevelJobs)
           
 ISchema getSchema()
           
 java.lang.String getStringBindingAttribute(java.lang.String aName)
          Gets a string valued binding attribute.
 java.lang.String getTargetNamespace()
          Gets the target namespace.
 ITopLevelElement getTopLevelElement(IRef aRef)
          Gets a top level element.
 boolean isChameleon()
          Indicates if the schema element is a chameleon.
 ITopLevelElement removeTopLevelElement(IRef aRef)
          Removed a top level element.
 void setSchema(ISchema aSchema)
           
 ITopLevelElement setTopLevelElement(ITopLevelElement aTopLevelElement)
          Sets a top level element.
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Method Detail

isChameleon

public boolean isChameleon()
Indicates if the schema element is a chameleon. A chameleon schema element has no target namespace of its own. It gets its target namespace when it is included or redefined by another schema element.


getTargetNamespace

public java.lang.String getTargetNamespace()
Gets the target namespace. A schema element that is included or redefined by another schema element returns the target namespace of the other schema element. A schema element that has no target namespace return the constant INamespaces.NO.

Returns:
(required).

getTopLevelElement

public ITopLevelElement getTopLevelElement(IRef aRef)
Gets a top level element.

Parameters:
aRef - (required).
Returns:
(optional).

setTopLevelElement

public ITopLevelElement setTopLevelElement(ITopLevelElement aTopLevelElement)
Sets a top level element.

Returns:
(optional). Returns any previously set top level element.

createJobs

public void createJobs(IHasTopLevelJobs aHasTopLevelJobs)

getSchema

public ISchema getSchema()

setSchema

public void setSchema(ISchema aSchema)

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).

removeTopLevelElement

public ITopLevelElement removeTopLevelElement(IRef aRef)
Removed a top level element.

Parameters:
aRef - (required).
Returns:
(optional). The removed element.

addElementId

public boolean addElementId(java.lang.String anId)
Adds the id of a schema element.

Parameters:
anId - (required).
Returns:
Returns true iff the id was not already added, i.e. the id is unique so far.