|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.repo.chef.DisplayRelationValue
Represents a Relation's value; either String or Reference. A DisplayRelation acts as a container of zero or more DisplayRelationValues.
Typical Usage:
A DisplayRelationValue is acquired by interrogating a DisplayRelation's getValue() or getValues() methods. Then, getString() or getReference..() can be called to retrieve information about the value. The type of a DisplayRelationValue can be determined by calling the parent DisplayRelation's getType() method.
Life Cycle:
Created by DisplayRelation; lives in DisplayRelations read-only value() and values() properties.
DisplayRelation| Constructor Summary | |
protected |
DisplayRelationValue(java.util.Date s)
creates displayrelation given a Date |
protected |
DisplayRelationValue(double s)
creates displayrelation given a double |
protected |
DisplayRelationValue(Identifier r,
MetadataObject refObj,
java.lang.String t)
creates displayrelation given a reference, it's title |
protected |
DisplayRelationValue(int s)
creates displayrelation given an int |
protected |
DisplayRelationValue(long s)
creates displayrelation given a long |
protected |
DisplayRelationValue(java.lang.String s)
creates displayrelation given a string |
| Method Summary | |
java.util.Date |
getDate()
Get the date value. |
java.lang.String |
getDay()
Get the day of a date |
double |
getDouble()
Get the double value. |
java.lang.String |
getHour()
Get the hour of a date |
int |
getInt()
Get the int value. |
long |
getLong()
Get the long value. |
java.lang.String |
getMilliSec()
Get the millisec of a date |
java.lang.String |
getMin()
Get the min of a date |
java.lang.String |
getMonth()
Get the month of a date |
int |
getPosition()
|
Identifier |
getReference()
Get the reference value. |
Identifier |
getReferenceId()
Get the reference's ID, serialized. |
java.lang.String |
getReferenceIdSerialized()
Get the reference's ID, serialized. |
java.lang.String |
getReferenceTitle()
Get the title of the referenced object. |
int |
getReferenceVersion()
Get the reference's version #. |
java.lang.String |
getReferenceVersionAsString()
Get the reference's version # as a String. |
java.lang.String |
getSec()
Get the Sec of a date |
java.lang.String |
getString()
Get the String value. |
static java.lang.String |
getString(java.util.Date value)
Convenience method for returning the string representation of a Date. |
static java.lang.String |
getString(double value)
Convenience method for returning the string representation of a double. |
static java.lang.String |
getString(Identifier value)
Convenience method for returning the string representation of a reference. |
static java.lang.String |
getString(int value)
Convenience method for returning the string representation of an int. |
static java.lang.String |
getString(long value)
Convenience method for returning the string representation of a long. |
static java.lang.String |
getString(java.lang.String value)
Convenience method for returning the string representation of a String. |
java.lang.String |
getYear()
Get the year of a date |
void |
setPosition(int i)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DisplayRelationValue(java.lang.String s)
protected DisplayRelationValue(int s)
protected DisplayRelationValue(long s)
protected DisplayRelationValue(double s)
protected DisplayRelationValue(java.util.Date s)
protected DisplayRelationValue(Identifier r,
MetadataObject refObj,
java.lang.String t)
| Method Detail |
public void setPosition(int i)
public int getPosition()
public java.lang.String getString()
public static java.lang.String getString(java.lang.String value)
public static java.lang.String getString(Identifier value)
public static java.lang.String getString(double value)
public static java.lang.String getString(int value)
public static java.lang.String getString(long value)
public static java.lang.String getString(java.util.Date value)
public int getInt()
public long getLong()
public double getDouble()
public java.util.Date getDate()
public java.lang.String getDay()
public java.lang.String getMonth()
public java.lang.String getYear()
public java.lang.String getHour()
public java.lang.String getMin()
public java.lang.String getSec()
public java.lang.String getMilliSec()
public Identifier getReference()
public java.lang.String getReferenceIdSerialized()
public Identifier getReferenceId()
public int getReferenceVersion()
public java.lang.String getReferenceTitle()
public java.lang.String getReferenceVersionAsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||