macaw.persistenceLayer.demo
Class InMemoryValueLabelManager

java.lang.Object
  extended by macaw.persistenceLayer.demo.InMemoryCurationConceptManager
      extended by macaw.persistenceLayer.demo.InMemoryValueLabelManager

public class InMemoryValueLabelManager
extends InMemoryCurationConceptManager

Manages instances of ValueLabel in memory. The manager has two minor features that distinguish it from other manager classes:


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
 
Fields inherited from class macaw.persistenceLayer.demo.InMemoryCurationConceptManager
log
 
Constructor Summary
InMemoryValueLabelManager(InMemoryChangeEventManager changeEventManager)
           
 
Method Summary
 void addValueLabels(User user, Variable variable, java.util.ArrayList<ValueLabel> valueLabels)
           
 void clear()
           
 void deleteValueLabels(User user, Variable variable, java.util.ArrayList<ValueLabel> valueLabels)
           
 int getValueLabelIdentifier(Variable variable, ValueLabel valueLabel)
           
 java.util.ArrayList<ValueLabel> getValueLabels(User user, Variable variable)
           
 void updateValueLabels(User user, Variable variable, java.util.ArrayList<ValueLabel> revisedValueLabels)
           
 
Methods inherited from class macaw.persistenceLayer.demo.InMemoryCurationConceptManager
registerChangeEvent, registerChangeEvents, setLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryValueLabelManager

public InMemoryValueLabelManager(InMemoryChangeEventManager changeEventManager)
Method Detail

getValueLabels

public java.util.ArrayList<ValueLabel> getValueLabels(User user,
                                                      Variable variable)
                                               throws MacawException
Throws:
MacawException

addValueLabels

public void addValueLabels(User user,
                           Variable variable,
                           java.util.ArrayList<ValueLabel> valueLabels)
                    throws MacawException
Throws:
MacawException

updateValueLabels

public void updateValueLabels(User user,
                              Variable variable,
                              java.util.ArrayList<ValueLabel> revisedValueLabels)
                       throws MacawException
Throws:
MacawException

deleteValueLabels

public void deleteValueLabels(User user,
                              Variable variable,
                              java.util.ArrayList<ValueLabel> valueLabels)
                       throws MacawException
Throws:
MacawException

getValueLabelIdentifier

public int getValueLabelIdentifier(Variable variable,
                                   ValueLabel valueLabel)

clear

public void clear()