Package gov.nih.mipav.model.file
Class XMLParameter
java.lang.Object
gov.nih.mipav.model.file.XMLParameter
- All Implemented Interfaces:
Serializable
Title: Parameter
Description: Public class to store information for a parameter associated with the image (infinite parameters allowed per)
Copyright: Copyright (c) 2004
Company:
- Version:
- 1.0
- Author:
- not attributable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringParameter date.private StringParameter description.private StringParameter name.private static final longUse serialVersionUID for interoperability.private StringParameter time.private StringParameter value.private StringParameter value type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Gets the parameter's date.Gets the parameter's description.getName()Gets the parameter's name.getTime()Gets the parameter's time.getValue()Gets the parameter's value.Gets the parameter's value-type.voidSets the date for the parameter.voidsetDateTime(String dateTime) Sets the date + T + time for the parameter.voidsetDescription(String description) Sets the description for the parameter.voidSets the time for the parameter.voidSets the value for the parameter.voidsetValueType(String valueType) Sets the value type for the parameter.toString()String representation of parameter.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
date
Parameter date. -
description
Parameter description. -
name
Parameter name. -
time
Parameter time. -
value
Parameter value. -
valueType
Parameter value type.
-
-
Constructor Details
-
XMLParameter
Creates a new parameter by name.- Parameters:
name- String parameter name
-
-
Method Details
-
getDate
Gets the parameter's date.- Returns:
- String date
-
getDescription
Gets the parameter's description.- Returns:
- String description
-
getName
Gets the parameter's name.- Returns:
- String parameter name
-
getTime
Gets the parameter's time.- Returns:
- String time
-
getValue
Gets the parameter's value.- Returns:
- String value
-
getValueType
Gets the parameter's value-type.- Returns:
- String value-type
-
setDate
Sets the date for the parameter.- Parameters:
date- String date
-
setDateTime
Sets the date + T + time for the parameter.- Parameters:
dateTime- String date-time
-
setDescription
Sets the description for the parameter.- Parameters:
description- String description
-
setTime
Sets the time for the parameter.- Parameters:
time- String time
-
setValue
Sets the value for the parameter.- Parameters:
value- String value
-
setValueType
Sets the value type for the parameter.- Parameters:
valueType- String value type
-
toString
String representation of parameter.
-