ome.services.graphs
Class GraphEntry

java.lang.Object
  extended by ome.services.graphs.GraphEntry

public class GraphEntry
extends Object

Single value of the map entries from spec.xml. A value such as "HARD;/Roi" specifies that the operation with the name "HARD" should be applied to the given path, and that the given path should use a pre-existing specification.

Since:
Beta4.2.1
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
IGraph

Field Summary
static GraphOpts.Op DEFAULT
           
 
Constructor Summary
GraphEntry(GraphSpec self, String value)
           
GraphEntry(GraphSpec self, String name, GraphEntry entry)
           
 
Method Summary
protected  void checkArgs(Object... values)
           
 long getId()
           
protected  Matcher getMatcher(String operation)
           
 String getName()
           
protected  String getName(Matcher m)
           
protected  GraphOpts.Op getOp(Matcher m)
           
protected  String getPath(Matcher m)
           
 GraphSpec getSubSpec()
           
 String getSuperSpec()
           
 int initialize(long id, String superspec, Map<String,String> options)
          Called during GraphSpec.initialize(long, String, Map) to give the entry a chance to modify its #op based on the options and to initialize subspecs.
 boolean isKeep()
           
 boolean isNull()
           
 boolean isSoft()
           
 String log(String superspec)
          Similar to toString() but used to
 String[] path(String superspec)
           
 void pop(GraphOpts opts)
           
protected  void postProcess(org.springframework.beans.factory.ListableBeanFactory factory)
          Load the spec which has the same name as this entry, but do not load the spec if the name matches name.
 void push(GraphOpts opts, EventContext ec)
           
 boolean skip()
          A KEEP setting is a way of putting a KEEP suggestion to vote.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final GraphOpts.Op DEFAULT
Constructor Detail

GraphEntry

public GraphEntry(GraphSpec self,
                  String value)

GraphEntry

public GraphEntry(GraphSpec self,
                  String name,
                  GraphEntry entry)
Method Detail

getName

public String getName()

isKeep

public boolean isKeep()

getSubSpec

public GraphSpec getSubSpec()

getSuperSpec

public String getSuperSpec()

getId

public long getId()

path

public String[] path(String superspec)

checkArgs

protected void checkArgs(Object... values)

getMatcher

protected Matcher getMatcher(String operation)

getName

protected String getName(Matcher m)

getOp

protected GraphOpts.Op getOp(Matcher m)

getPath

protected String getPath(Matcher m)

postProcess

protected void postProcess(org.springframework.beans.factory.ListableBeanFactory factory)
Load the spec which has the same name as this entry, but do not load the spec if the name matches name. This is called early in the GraphEntry lifecycle, by GraphSpec.


initialize

public int initialize(long id,
                      String superspec,
                      Map<String,String> options)
               throws GraphException
Called during GraphSpec.initialize(long, String, Map) to give the entry a chance to modify its #op based on the options and to initialize subspecs. The superspec is passed in so that both the absolute path as well as the last path element can be checked. Further, a key of "/" apply to all entries.

Throws:
GraphException

skip

public boolean skip()
A KEEP setting is a way of putting a KEEP suggestion to vote. If there is a subspec, however, that vote must be passed down. If the KEEP is vetoed, it is the responsiblity of the subspec to make sure that only the proper parts are kept or not kept.


isNull

public boolean isNull()

isSoft

public boolean isSoft()

push

public void push(GraphOpts opts,
                 EventContext ec)
          throws GraphException
Throws:
GraphException

pop

public void pop(GraphOpts opts)

toString

public String toString()
Overrides:
toString in class Object

log

public String log(String superspec)
Similar to toString() but used to

Parameters:
superspec2 -
Returns:


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.