org.jbind.xml.schema.element
Class SourceInfo

java.lang.Object
  extended byorg.jbind.xml.schema.element.SourceInfo
All Implemented Interfaces:
IHasBindingAttributes, IHasLocation, ISourceInfo

public class SourceInfo
extends java.lang.Object
implements ISourceInfo


Constructor Summary
SourceInfo(IElement anElement)
           
 
Method Summary
 IAnnotation getAnnotation()
           
 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.util.Map getPrefixToNamespaceMapping()
           
 java.lang.String getStringBindingAttribute(java.lang.String aName)
          Gets a string valued binding attribute.
 boolean isTopLevelComponent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceInfo

public SourceInfo(IElement anElement)
Method Detail

getLocation

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

isTopLevelComponent

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

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

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

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

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

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

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

getAnnotation

public IAnnotation getAnnotation()
Specified by:
getAnnotation in interface ISourceInfo

getPrefixToNamespaceMapping

public java.util.Map getPrefixToNamespaceMapping()
Specified by:
getPrefixToNamespaceMapping in interface ISourceInfo