| java.lang.Object org.griphyn.vdl.parser.MemoryStorage
MemoryStorage | public class MemoryStorage implements DefinitionHandler(Code) | | This class adds a given Definition from the parser's callback into
the already established in-memory storage.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Constructor Summary | |
public | MemoryStorage(Definitions definitions, boolean overwrite, boolean dontcare) The c'tor initializes the references to modify the in-memory database
of definitions. |
Method Summary | |
public java.util.List | getRejects() Accessor: Provide an iterator to walk the rejects list. | public boolean | store(Definition d) This method adds the given Definition to whatever storage is
implemented underneath. |
MemoryStorage | public MemoryStorage(Definitions definitions, boolean overwrite, boolean dontcare)(Code) | | The c'tor initializes the references to modify the in-memory database
of definitions.
Parameters: definitions - is a reference to the in-memory database. Parameters: overwrite - establishes insert or update mode. |
getRejects | public java.util.List getRejects()(Code) | | Accessor: Provide an iterator to walk the rejects list.
full access to the rejects list. |
store | public boolean store(Definition d)(Code) | | This method adds the given Definition to whatever storage is
implemented underneath.
Parameters: d - is the Definition that is ready to be stored. true, if new version was stored and database modified |
|
|