org.apache.jetspeed.prefs.om
Interface Property

All Superinterfaces:
Cloneable, Serializable

public interface Property
extends Serializable, Cloneable

Interface representing a property key/value pair.

Author:
David Le Strat

Field Summary
static int BOOLEAN_TYPE
          Constant for boolean property value object type.
static int DOUBLE_TYPE
          Constant for double property value object type.
static int LONG_TYPE
          Constant for long property value object type.
static int STRING_TYPE
          Constant for String property value object type.
static int TIMESTAMP_TYPE
          Constant for Timestamp property value object type.
 
Method Summary
 boolean getBooleanPropertyValue()
          Getter for the boolean property value.
 Timestamp getCreationDate()
          Getter for creation date.
 Timestamp getDatePropertyValue()
          Getter for the date property value.
 double getDoublePropertyValue()
          Getter for the double property value.
 long getLongPropertyValue()
          Getter for the long property value.
 Timestamp getModifiedDate()
          Getter for the modified date.
 long getNodeId()
          Getter for the node id.
 PropertyKey getPropertyKey()
          Getter for the property key object.
 long getPropertyKeyId()
          Getter for the node id.
 String getPropertyValue(int valueObjectType)
          Utility method used to return the property value as a String.
 long getPropertyValueId()
          Getter for the property value id.
 String getTextPropertyValue()
          Getter for the text property value.
 void setBooleanPropertyValue(boolean booleanPropertyValue)
          Setter for the boolean property value.
 void setCreationDate(Timestamp creationDate)
          Setter for the creation date.
 void setDatePropertyValue(Timestamp datePropertyValue)
          Setter for the date property value.
 void setDoublePropertyValue(double doublePropertyValue)
          Setter for the double property value.
 void setLongPropertyValue(long longPropertyValue)
          Setter for the long property value.
 void setModifiedDate(Timestamp modifiedDate)
          Setter for the modified date.
 void setNodeId(long nodeId)
          Setter for the node id.
 void setPropertyKey(PropertyKey propertyKey)
          Setter for the property key object.
 void setPropertyKeyId(long propertyKeyId)
          Setter for the property key id.
 void setPropertyValue(int valueObjectType, String valueObject)
          Utility method used to identify with property value to set based on the value object type.
 void setPropertyValueId(long propertyValueId)
          Setter for the property value id.
 void setTextPropertyValue(String textPropertyValue)
          Setter for the text property value.
 

Field Detail

BOOLEAN_TYPE

public static final int BOOLEAN_TYPE

Constant for boolean property value object type.

See Also:
Constant Field Values

LONG_TYPE

public static final int LONG_TYPE

Constant for long property value object type.

See Also:
Constant Field Values

DOUBLE_TYPE

public static final int DOUBLE_TYPE

Constant for double property value object type.

See Also:
Constant Field Values

STRING_TYPE

public static final int STRING_TYPE

Constant for String property value object type.

See Also:
Constant Field Values

TIMESTAMP_TYPE

public static final int TIMESTAMP_TYPE

Constant for Timestamp property value object type.

See Also:
Constant Field Values
Method Detail

getPropertyValueId

public long getPropertyValueId()

Getter for the property value id.

Returns:
The property value id.

setPropertyValueId

public void setPropertyValueId(long propertyValueId)

Setter for the property value id.

Parameters:
propertyValueId - The property value id.

getNodeId

public long getNodeId()

Getter for the node id.

Returns:
The node id.

setNodeId

public void setNodeId(long nodeId)

Setter for the node id.

Parameters:
nodeId - The node id.

getPropertyKeyId

public long getPropertyKeyId()

Getter for the node id.

Returns:
The property key id.

setPropertyKeyId

public void setPropertyKeyId(long propertyKeyId)

Setter for the property key id.

Parameters:
propertyKeyId - The property key id.

getPropertyKey

public PropertyKey getPropertyKey()

Getter for the property key object.

Returns:
The property key object.

setPropertyKey

public void setPropertyKey(PropertyKey propertyKey)

Setter for the property key object.

Parameters:
propertyKey - The property key object.

getPropertyValue

public String getPropertyValue(int valueObjectType)

Utility method used to return the property value as a String.

Parameters:
valueObjectType - The value object type.
Returns:
The property value as a String.

setPropertyValue

public void setPropertyValue(int valueObjectType,
                             String valueObject)

Utility method used to identify with property value to set based on the value object type.

Parameters:
valueObjectType - The value object type.
valueObject - The value object.

getBooleanPropertyValue

public boolean getBooleanPropertyValue()

Getter for the boolean property value.

Returns:
The boolean property value.

setBooleanPropertyValue

public void setBooleanPropertyValue(boolean booleanPropertyValue)

Setter for the boolean property value.

Parameters:
booleanPropertyValue - The boolean property value.

getDatePropertyValue

public Timestamp getDatePropertyValue()

Getter for the date property value.

Returns:
The date property value.

setDatePropertyValue

public void setDatePropertyValue(Timestamp datePropertyValue)

Setter for the date property value.

Parameters:
datePropertyValue - The date property value.

getLongPropertyValue

public long getLongPropertyValue()

Getter for the long property value.

Returns:
The long property value.

setLongPropertyValue

public void setLongPropertyValue(long longPropertyValue)

Setter for the long property value.

Parameters:
longPropertyValue - The long property value.

getDoublePropertyValue

public double getDoublePropertyValue()

Getter for the double property value.

Returns:
The double property value.

setDoublePropertyValue

public void setDoublePropertyValue(double doublePropertyValue)

Setter for the double property value.

Parameters:
doublePropertyValue - The double property value.

getTextPropertyValue

public String getTextPropertyValue()

Getter for the text property value.

Returns:
The text property value.

setTextPropertyValue

public void setTextPropertyValue(String textPropertyValue)

Setter for the text property value.

Parameters:
textPropertyValue - The text property value.

getCreationDate

public Timestamp getCreationDate()

Getter for creation date.

Returns:
The creation date.

setCreationDate

public void setCreationDate(Timestamp creationDate)

Setter for the creation date.

Parameters:
creationDate - The creation date.

getModifiedDate

public Timestamp getModifiedDate()

Getter for the modified date.

Returns:
The modified date.

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)

Setter for the modified date.

Parameters:
modifiedDate - The modified date.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.