cartago
Class ObsProperty

java.lang.Object
  extended by cartago.ObsProperty
All Implemented Interfaces:
java.io.Serializable

public class ObsProperty
extends java.lang.Object
implements java.io.Serializable

Class represeting artifact observable properties.

Author:
aricci
See Also:
Serialized Form

Method Summary
 boolean booleanValue()
          Get the index-0 value of type boolean of the property
 boolean booleanValue(int index)
          Get a value of type boolean of the property
 char charValue()
          Get the index-0 value of type char of the property
 char charValue(int index)
          Get a value of type char of the property
 void commitChanges()
           
 double doubleValue()
          Get the index-0 value of type double of the property
 double doubleValue(int index)
          Get a value of type double of the property
 float floatValue()
          Get the index-0 value of type float of the property
 float floatValue(int index)
          Get a value of type float of the property
 java.lang.String getFullId()
           
 long getId()
           
 java.lang.String getName()
          Get the name of the property
 java.lang.Object getValue()
          Get the index-0 value
 java.lang.Object getValue(int index)
          Get a value of the property
 java.lang.Object[] getValues()
          Get the array of values
 int intValue()
          Get the index-0 value of type int of the property
 int intValue(int index)
          Get a value of type int of the property
 long longValue()
          Get the index-0 value of type long of the property
 long longValue(int index)
          Get a value of type long of the property
 boolean match(java.lang.String nam, java.lang.Object... v)
           
 void rollbackChanges()
           
 java.lang.String stringValue()
          Get the index-0 value of type string of the property
 java.lang.String stringValue(int index)
          Get a value of type string of the property
 java.lang.String toString()
           
 void updateValue(int index, java.lang.Object value)
          Update a value
 void updateValue(java.lang.Object value)
          Update the index-0 value
 void updateValues(java.lang.Object... values)
          Update all the values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public long getId()

getFullId

public java.lang.String getFullId()

getName

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

Returns:

getValue

public java.lang.Object getValue(int index)
Get a value of the property

Parameters:
index - index of the value
Returns:

getValues

public java.lang.Object[] getValues()
Get the array of values

Returns:

intValue

public int intValue(int index)
Get a value of type int of the property

Parameters:
index - index of the value
Returns:

doubleValue

public double doubleValue(int index)
Get a value of type double of the property

Parameters:
index - index of the value
Returns:

stringValue

public java.lang.String stringValue(int index)
Get a value of type string of the property

Parameters:
index - index of the value
Returns:

booleanValue

public boolean booleanValue(int index)
Get a value of type boolean of the property

Parameters:
index - index of the value
Returns:

floatValue

public float floatValue(int index)
Get a value of type float of the property

Parameters:
index - index of the value
Returns:

longValue

public long longValue(int index)
Get a value of type long of the property

Parameters:
index - index of the value
Returns:

charValue

public char charValue(int index)
Get a value of type char of the property

Parameters:
index - index of the value
Returns:

intValue

public int intValue()
Get the index-0 value of type int of the property

Parameters:
index - index of the value
Returns:

doubleValue

public double doubleValue()
Get the index-0 value of type double of the property

Parameters:
index - index of the value
Returns:

stringValue

public java.lang.String stringValue()
Get the index-0 value of type string of the property

Parameters:
index - index of the value
Returns:

booleanValue

public boolean booleanValue()
Get the index-0 value of type boolean of the property

Parameters:
index - index of the value
Returns:

floatValue

public float floatValue()
Get the index-0 value of type float of the property

Parameters:
index - index of the value
Returns:

longValue

public long longValue()
Get the index-0 value of type long of the property

Parameters:
index - index of the value
Returns:

charValue

public char charValue()
Get the index-0 value of type char of the property

Parameters:
index - index of the value
Returns:

getValue

public java.lang.Object getValue()
Get the index-0 value

Parameters:
value -

updateValue

public void updateValue(java.lang.Object value)
Update the index-0 value

Parameters:
value -

commitChanges

public void commitChanges()

rollbackChanges

public void rollbackChanges()

updateValue

public void updateValue(int index,
                        java.lang.Object value)
Update a value

Parameters:
index - index of the value
value -

updateValues

public void updateValues(java.lang.Object... values)
Update all the values

Parameters:
value -

match

public boolean match(java.lang.String nam,
                     java.lang.Object... v)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


>DEIS - University of Bologna