it.eng.spago.cms
Class CmsProperty

java.lang.Object
  extended by it.eng.spago.cms.CmsProperty

public class CmsProperty
extends java.lang.Object

Models the property of a cms node


Field Summary
static java.lang.String TYPE_BINARY
          Binary type of the property (java InputStream type)
static java.lang.String TYPE_BOOLEAN
          Boolean type of the property (java Boolean type)
static java.lang.String TYPE_DATE
          Date type of the property (java Calendar type)
static java.lang.String TYPE_DOUBLE
          Double type of the property (java Double type)
static java.lang.String TYPE_LONG
          Long type of the property (java Long type)
static java.lang.String TYPE_STRING
          String type of the property (java String type)
 
Constructor Summary
CmsProperty(java.lang.String namein, java.lang.Boolean[] valuesin)
          Constructor of the class useful to build a properties of type Boolean setting a name and an array of Boolean values
CmsProperty(java.lang.String namein, java.util.Calendar[] valuesin)
          Constructor of the class useful to build a properties of type Date setting a name and an array of Calendar values
CmsProperty(java.lang.String namein, java.lang.Double[] valuesin)
          Constructor of the class useful to build a properties of type Double setting a name and an array of Double values
CmsProperty(java.lang.String namein, java.io.InputStream[] valuesin)
          Constructor of the class useful to build a properties of type Binary setting a name and an array of InputStream values
CmsProperty(java.lang.String namein, java.lang.Long[] valuesin)
          Constructor of the class useful to build a properties of type Long setting a name and an array of Long values
CmsProperty(java.lang.String namein, java.lang.String[] valuesin)
          Constructor of the class useful to build a properties of type String setting a name and an array of string values
 
Method Summary
 java.io.InputStream[] getBinaryValues()
          Gets the Binary values of the property
 java.lang.Boolean[] getBooleanValues()
          Gets the Boolean values of the property
 java.util.Calendar[] getDateValues()
          Gets the Date values of the property
 java.lang.Double[] getDoubleValues()
          Gets the Double values of the property
 java.lang.Long[] getLongValues()
          Gets the Long values of the property
 java.lang.String getName()
          Gets the name of the property
 java.lang.String[] getStringValues()
          Gets the String values of the property
 java.lang.String getType()
          Gets the type of the property
 void setBinaryValues(java.io.InputStream[] invalues)
          Sets the Binary values of the property
 void setBooleanValues(java.lang.Boolean[] invalues)
          Sets the Boolean values of the property
 void setDateValues(java.util.Calendar[] invalues)
          Sets the Date values of the property
 void setDoubleValues(java.lang.Double[] invalues)
          Sets the Double values of the property
 void setLongValues(java.lang.Long[] invalues)
          Sets the Long values of the property
 void setName(java.lang.String name)
          Sets the name of the property
 void setStringValues(java.lang.String[] invalues)
          Sets the String values of the property
 void setType(java.lang.String type)
          Sets the type of the property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_BINARY

public static final java.lang.String TYPE_BINARY
Binary type of the property (java InputStream type)

See Also:
Constant Field Values

TYPE_BOOLEAN

public static final java.lang.String TYPE_BOOLEAN
Boolean type of the property (java Boolean type)

See Also:
Constant Field Values

TYPE_DATE

public static final java.lang.String TYPE_DATE
Date type of the property (java Calendar type)

See Also:
Constant Field Values

TYPE_DOUBLE

public static final java.lang.String TYPE_DOUBLE
Double type of the property (java Double type)

See Also:
Constant Field Values

TYPE_LONG

public static final java.lang.String TYPE_LONG
Long type of the property (java Long type)

See Also:
Constant Field Values

TYPE_STRING

public static final java.lang.String TYPE_STRING
String type of the property (java String type)

See Also:
Constant Field Values
Constructor Detail

CmsProperty

public CmsProperty(java.lang.String namein,
                   java.lang.String[] valuesin)
Constructor of the class useful to build a properties of type String setting a name and an array of string values

Parameters:
namein - The name of the property
valuesin - The array of String values

CmsProperty

public CmsProperty(java.lang.String namein,
                   java.lang.Long[] valuesin)
Constructor of the class useful to build a properties of type Long setting a name and an array of Long values

Parameters:
namein - The name of the property
valuesin - The array of Long values

CmsProperty

public CmsProperty(java.lang.String namein,
                   java.lang.Double[] valuesin)
Constructor of the class useful to build a properties of type Double setting a name and an array of Double values

Parameters:
namein - The name of the property
valuesin - The array of Double values

CmsProperty

public CmsProperty(java.lang.String namein,
                   java.util.Calendar[] valuesin)
Constructor of the class useful to build a properties of type Date setting a name and an array of Calendar values

Parameters:
namein - The name of the property
valuesin - The array of Calendar values

CmsProperty

public CmsProperty(java.lang.String namein,
                   java.lang.Boolean[] valuesin)
Constructor of the class useful to build a properties of type Boolean setting a name and an array of Boolean values

Parameters:
namein - The name of the property
valuesin - The array of Boolean values

CmsProperty

public CmsProperty(java.lang.String namein,
                   java.io.InputStream[] valuesin)
Constructor of the class useful to build a properties of type Binary setting a name and an array of InputStream values

Parameters:
namein - The name of the property
valuesin - The array of InputStream values
Method Detail

getName

public java.lang.String getName()
Gets the name of the property

Returns:
the name of the property

setName

public void setName(java.lang.String name)
Sets the name of the property

Parameters:
name - The name of the property

getType

public java.lang.String getType()
Gets the type of the property

Returns:
the type of the property (BINARY/BOOLEAN/DOUBLE/DATE/LONG/STRING)

setType

public void setType(java.lang.String type)
Sets the type of the property

Parameters:
type - The type of the property

getStringValues

public java.lang.String[] getStringValues()
Gets the String values of the property

Returns:
Array of the String values of the property

setStringValues

public void setStringValues(java.lang.String[] invalues)
Sets the String values of the property

Parameters:
invalues - Array of the String values of the property

getBinaryValues

public java.io.InputStream[] getBinaryValues()
Gets the Binary values of the property

Returns:
Array of the InputStream values of the property

setBinaryValues

public void setBinaryValues(java.io.InputStream[] invalues)
Sets the Binary values of the property

Parameters:
invalues - Array of the InputStream values of the property

getLongValues

public java.lang.Long[] getLongValues()
Gets the Long values of the property

Returns:
Array of the Long values of the property

setLongValues

public void setLongValues(java.lang.Long[] invalues)
Sets the Long values of the property

Parameters:
invalues - Array of the Long values of the property

getDoubleValues

public java.lang.Double[] getDoubleValues()
Gets the Double values of the property

Returns:
Array of the Double values of the property

setDoubleValues

public void setDoubleValues(java.lang.Double[] invalues)
Sets the Double values of the property

Parameters:
invalues - Array of the Double values of the property

getBooleanValues

public java.lang.Boolean[] getBooleanValues()
Gets the Boolean values of the property

Returns:
Array of the Boolean values of the property

setBooleanValues

public void setBooleanValues(java.lang.Boolean[] invalues)
Sets the Boolean values of the property

Parameters:
invalues - Array of the Boolean values of the property

getDateValues

public java.util.Calendar[] getDateValues()
Gets the Date values of the property

Returns:
Array of the Calendar values of the property

setDateValues

public void setDateValues(java.util.Calendar[] invalues)
Sets the Date values of the property

Parameters:
invalues - Array of the Calendar values of the property