org.datamixer.config
Interface DatamixerConfig

All Known Implementing Classes:
ElementBase

public interface DatamixerConfig


Method Summary
 boolean addElement(DatamixerConfig element)
          Add element to self as a nested element.
 DatamixerContext findContext(int scope)
          Get the context at scope.
 java.lang.Object findInContext(java.lang.String name)
          Finds an object by name in the nearest enclosing scope.
 java.lang.Object findInContext(java.lang.String name, int scope)
          Finds an object by name in scope.
 java.lang.Object getAttribute(java.lang.String name)
          Get the value of the attribute named name.
 DatamixerContext getContext()
          Get the context.
 java.util.List getElements()
          Returns nested elements.
 java.lang.Object getImpl()
          Return the implementation.
 int getLineNumber()
           
 java.lang.String getNamespace()
          Get the namespace.
 DatamixerConfig getParent()
          Gets the parent.
 java.lang.String getQName()
          Get the qualified name.
 java.util.List getSupportedAttrs()
          Returns a list of names of supported attributes.
 java.lang.String getSystemId()
           
 java.lang.String getTag()
          Get the tag.
 void initialize()
          initialize
 boolean setAttribute(java.lang.String name, java.lang.Object value)
          Set value into the attribute named name.
 void setImpl(java.lang.Object impl)
          Set the implementation.
 void setInContext(java.lang.String name, java.lang.Object value)
          Does nothing if name is null.
 void setInContext(java.lang.String name, java.lang.Object value, java.lang.Integer scope)
          Does nothing if name is null.
 void setLineNumber(int value)
           
 void setNamespace(java.lang.String namespace)
          Set the namespace.
 void setParent(DatamixerConfig parent)
          Sets the parent.
 void setSystemId(java.lang.String value)
           
 void setTag(java.lang.String tag)
          Set the tag.
 

Method Detail

initialize

public void initialize()
                throws DatamixerException
initialize

Throws:
DatamixerException

getImpl

public java.lang.Object getImpl()
Return the implementation.


setImpl

public void setImpl(java.lang.Object impl)
Set the implementation.


getContext

public DatamixerContext getContext()
Get the context. Implemented by PageConfig and ApplicationConfig.


findContext

public DatamixerContext findContext(int scope)
Get the context at scope. Scope is DatamixerContext.SCOPE_APPLICATION or DatamixerContext.SCOPE_PAGE.


findInContext

public java.lang.Object findInContext(java.lang.String name)
Finds an object by name in the nearest enclosing scope.


findInContext

public java.lang.Object findInContext(java.lang.String name,
                                      int scope)
Finds an object by name in scope.


setInContext

public void setInContext(java.lang.String name,
                         java.lang.Object value)
Does nothing if name is null. Otherwise sets object by name into the nearest enclosing scope.


setInContext

public void setInContext(java.lang.String name,
                         java.lang.Object value,
                         java.lang.Integer scope)
Does nothing if name is null. Otherwise sets object by name into scope, or into the nearest enclosing scope, if scope is null.


getQName

public java.lang.String getQName()
Get the qualified name.


getNamespace

public java.lang.String getNamespace()
Get the namespace.


setNamespace

public void setNamespace(java.lang.String namespace)
Set the namespace.


getTag

public java.lang.String getTag()
Get the tag.


setTag

public void setTag(java.lang.String tag)
Set the tag.


getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Get the value of the attribute named name.


setAttribute

public boolean setAttribute(java.lang.String name,
                            java.lang.Object value)
Set value into the attribute named name. Returns true if element was set, false otherwise.


getSupportedAttrs

public java.util.List getSupportedAttrs()
Returns a list of names of supported attributes.


getParent

public DatamixerConfig getParent()
Gets the parent.


setParent

public void setParent(DatamixerConfig parent)
Sets the parent.


getElements

public java.util.List getElements()
Returns nested elements.


addElement

public boolean addElement(DatamixerConfig element)
Add element to self as a nested element. Returns true if element was set, false otherwise.


getSystemId

public java.lang.String getSystemId()

setSystemId

public void setSystemId(java.lang.String value)

getLineNumber

public int getLineNumber()

setLineNumber

public void setLineNumber(int value)


Copyright © 2004-2006 datamixer.org. All Rights Reserved.