com.yosokumo.core
Class EmptyBlock

java.lang.Object
  extended by com.yosokumo.core.Block
      extended by com.yosokumo.core.EmptyBlock

 class EmptyBlock
extends Block

Represents an empty block, i.e., a block containing no Predictors and no Specimens. An empty block can be used to test whether the requesting user has permission to post to the table or whether the study is 'running' and therefore accepting blocks into the table.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.yosokumo.core.Block
Block.Type
 
Constructor Summary
EmptyBlock()
          Initializes a newly created EmptyBlock object with default attributes.
EmptyBlock(java.lang.String id)
          Initializes a newly created EmptyBlock object with a study identifier.
 
Method Summary
(package private)  Block.Type getType()
          Return the empty block type.
 java.lang.String toString()
          Return the empty block as a String.
 
Methods inherited from class com.yosokumo.core.Block
getStudyIdentifier, setStudyIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyBlock

EmptyBlock()
Initializes a newly created EmptyBlock object with default attributes.


EmptyBlock

EmptyBlock(java.lang.String id)
Initializes a newly created EmptyBlock object with a study identifier.

Parameters:
id - a study identifier for the block.
Method Detail

getType

Block.Type getType()
Return the empty block type.

Specified by:
getType in class Block
Returns:
the empty block type: Type.EMPTY.

toString

public java.lang.String toString()
Return the empty block as a String.

Specified by:
toString in class Block
Returns:
the empty block as a String.