macaw.businessLayer
Class AliasFilePath

java.lang.Object
  extended by macaw.businessLayer.AliasFilePath
All Implemented Interfaces:
java.lang.Cloneable, Displayable

public class AliasFilePath
extends java.lang.Object
implements Displayable, java.lang.Cloneable

is an association between a logical location for data associated with a variable and a physical location


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
AliasFilePath()
           
AliasFilePath(java.lang.String alias, java.lang.String filePath)
           
 
Method Summary
 java.lang.Object clone()
           
static java.util.ArrayList<MacawChangeEvent> detectFieldChanges(User user, AliasFilePath originalAliasFilePath, AliasFilePath revisedAliasFilePath)
           
 java.lang.String getAlias()
           
 java.lang.String getDisplayItemIdentifier()
           
 java.lang.String getDisplayName()
           
 java.lang.String getFilePath()
           
 int getIdentifier()
           
 void setAlias(java.lang.String alias)
           
 void setFilePath(java.lang.String filePath)
           
 void setIdentifier(int identifier)
           
 void setNewRecord(boolean isNewRecord)
           
static void validateFields(AliasFilePath aliasFilePath)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasFilePath

public AliasFilePath(java.lang.String alias,
                     java.lang.String filePath)

AliasFilePath

public AliasFilePath()
Method Detail

setNewRecord

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

getIdentifier

public int getIdentifier()
Returns:
the identifier

setIdentifier

public void setIdentifier(int identifier)
Parameters:
identifier - the identifier to set

getAlias

public java.lang.String getAlias()
Returns:
the alias

setAlias

public void setAlias(java.lang.String alias)
Parameters:
alias - the alias to set

getFilePath

public java.lang.String getFilePath()
Returns:
the filePath

setFilePath

public void setFilePath(java.lang.String filePath)
Parameters:
filePath - the filePath to set

detectFieldChanges

public static java.util.ArrayList<MacawChangeEvent> detectFieldChanges(User user,
                                                                       AliasFilePath originalAliasFilePath,
                                                                       AliasFilePath revisedAliasFilePath)

validateFields

public static void validateFields(AliasFilePath aliasFilePath)
                           throws MacawException
Throws:
MacawException

getDisplayName

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

getDisplayItemIdentifier

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

clone

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