COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.common.spi.impl
Class AbstractCollectionContext

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.spi.impl.AbstractCollectionContext
All Implemented Interfaces:
IDataCollectionContext, OperationalStatus
Direct Known Subclasses:
InboundDataContext, OutboundDataContext

public abstract class AbstractCollectionContext
extends java.lang.Object
implements IDataCollectionContext, OperationalStatus


Field Summary
static int AVAILABLE
           
static int FULLY_WIRED
           
static int NOT_WIRED
           
static int PARTIALLY_AVAILABLE
           
static int PARTIALLY_WIRED
           
protected  ContextDescriptor rootDescriptor
           
static int UNAVAILABLE
           
static int UNKNOWN
           
 
Fields inherited from interface org.eclipse.cosmos.dc.common.api.IDataCollectionContext
CONTEXT_QNAME, COSMOS_NAMESPACE, DIRECTION_QNAME, NAME_QNAME, NAMESPACE, OPTIMIZABLE_QNAME
 
Constructor Summary
AbstractCollectionContext()
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getOperationalStatus()
           
 boolean isFullyWired()
           
 boolean isValid()
           
 boolean isWired()
           
 void load(org.w3c.dom.Document doc)
           
abstract  void materialize()
           
protected  void processBinding(DescriptorNode bindee, org.w3c.dom.Element binding)
           
protected  DescriptorNode processChild(DescriptorNode parent, org.w3c.dom.Element target)
           
protected  ContextDescriptor processContext(org.w3c.dom.Element context)
           
protected  FilterDescriptor processFilter(org.w3c.dom.Element context)
           
protected  QueryDescriptor processQuery(org.w3c.dom.Element context)
           
protected  ResponseDescriptor processResponse(org.w3c.dom.Element context)
           
protected  SinkDescriptor processSink(org.w3c.dom.Element context)
           
protected  SourceDescriptor processSource(org.w3c.dom.Element context)
           
protected  TransformDescriptor processTransform(org.w3c.dom.Element context)
           
protected  void setOperationalStatus(int status)
           
protected  void setValid(boolean valid)
           
protected  void setWired(int wired)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootDescriptor

protected ContextDescriptor rootDescriptor

AVAILABLE

public static final int AVAILABLE
See Also:
Constant Field Values

UNAVAILABLE

public static final int UNAVAILABLE
See Also:
Constant Field Values

PARTIALLY_AVAILABLE

public static final int PARTIALLY_AVAILABLE
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

NOT_WIRED

public static final int NOT_WIRED
See Also:
Constant Field Values

FULLY_WIRED

public static final int FULLY_WIRED
See Also:
Constant Field Values

PARTIALLY_WIRED

public static final int PARTIALLY_WIRED
See Also:
Constant Field Values
Constructor Detail

AbstractCollectionContext

public AbstractCollectionContext()
Method Detail

load

public void load(org.w3c.dom.Document doc)
          throws java.lang.Exception
Throws:
java.lang.Exception

processContext

protected ContextDescriptor processContext(org.w3c.dom.Element context)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

processSource

protected SourceDescriptor processSource(org.w3c.dom.Element context)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

processQuery

protected QueryDescriptor processQuery(org.w3c.dom.Element context)
                                throws java.lang.Exception
Throws:
java.lang.Exception

processSink

protected SinkDescriptor processSink(org.w3c.dom.Element context)
                              throws java.lang.Exception
Throws:
java.lang.Exception

processFilter

protected FilterDescriptor processFilter(org.w3c.dom.Element context)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

processTransform

protected TransformDescriptor processTransform(org.w3c.dom.Element context)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

processResponse

protected ResponseDescriptor processResponse(org.w3c.dom.Element context)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

processBinding

protected void processBinding(DescriptorNode bindee,
                              org.w3c.dom.Element binding)
                       throws java.lang.Exception
Throws:
java.lang.Exception

processChild

protected DescriptorNode processChild(DescriptorNode parent,
                                      org.w3c.dom.Element target)
                               throws java.lang.Exception
Throws:
java.lang.Exception

materialize

public abstract void materialize()
                          throws java.lang.Exception
Specified by:
materialize in interface IDataCollectionContext
Throws:
java.lang.Exception

getName

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

getOperationalStatus

public java.lang.String getOperationalStatus()
Specified by:
getOperationalStatus in interface OperationalStatus

setOperationalStatus

protected void setOperationalStatus(int status)

isValid

public boolean isValid()

setValid

protected void setValid(boolean valid)

isWired

public boolean isWired()

isFullyWired

public boolean isFullyWired()

setWired

protected void setWired(int wired)

COSMOS ${releaseVersion} data-collection Project
Public API Specification