macaw.persistenceLayer.demo
Class InMemoryValueLabelManager
java.lang.Object
macaw.persistenceLayer.demo.InMemoryCurationConceptManager
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:
- it tends to update collections of items rather than just one at a time.
- it checks to make sure that operations which add or edit a collection of
value labels to a variable do not have duplicate value labels within the list of
items to be added.
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryValueLabelManager
public InMemoryValueLabelManager(InMemoryChangeEventManager changeEventManager)
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()