macaw.businessLayer
Class MacawListChoice

java.lang.Object
  extended by macaw.businessLayer.MacawListChoice
All Implemented Interfaces:
java.lang.Cloneable, Displayable
Direct Known Subclasses:
AvailabilityState, Category, CleaningState

public abstract class MacawListChoice
extends java.lang.Object
implements Displayable


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)

Constructor Summary
MacawListChoice()
           
MacawListChoice(int identifier, java.lang.String name)
           
MacawListChoice(java.lang.String name)
           
 
Method Summary
abstract  java.lang.Object clone()
           
protected  void cloneAttributes(MacawListChoice macawListChoice)
           
static java.util.ArrayList<MacawChangeEvent> detectFieldChanges(User user, java.lang.String messageProperty, MacawListChoice originalListChoice, MacawListChoice revisedListChoice)
           
 java.lang.String getDisplayItemIdentifier()
           
 java.lang.String getDisplayName()
           
 int getIdentifier()
           
 java.lang.String getName()
           
 boolean hasSameDisplayName(MacawListChoice listChoice)
           
 boolean isNewRecord()
           
 void setIdentifier(int identifier)
           
 void setName(java.lang.String name)
           
 void setNewRecord(boolean isNewRecord)
           
protected static java.util.ArrayList<java.lang.String> validateFields(MacawListChoice listChoice)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacawListChoice

public MacawListChoice(int identifier,
                       java.lang.String name)

MacawListChoice

public MacawListChoice(java.lang.String name)

MacawListChoice

public MacawListChoice()
Method Detail

getIdentifier

public int getIdentifier()

setIdentifier

public void setIdentifier(int identifier)

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface Displayable

getDisplayItemIdentifier

public java.lang.String getDisplayItemIdentifier()
Specified by:
getDisplayItemIdentifier in interface Displayable

isNewRecord

public boolean isNewRecord()
Returns:
the isNewRecord

setNewRecord

public void setNewRecord(boolean isNewRecord)
Parameters:
isNewRecord - the isNewRecord to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

validateFields

protected static java.util.ArrayList<java.lang.String> validateFields(MacawListChoice listChoice)

detectFieldChanges

public static java.util.ArrayList<MacawChangeEvent> detectFieldChanges(User user,
                                                                       java.lang.String messageProperty,
                                                                       MacawListChoice originalListChoice,
                                                                       MacawListChoice revisedListChoice)

hasSameDisplayName

public boolean hasSameDisplayName(MacawListChoice listChoice)

cloneAttributes

protected void cloneAttributes(MacawListChoice macawListChoice)

clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object