com.unboundid.scim.sdk
Class SimpleValue

java.lang.Object
  extended by com.unboundid.scim.sdk.SimpleValue

public class SimpleValue
extends Object

This class represents a SCIM simple value. Simple values can be String, Boolean, DateTime or Binary.


Constructor Summary
SimpleValue(Boolean booleanValue)
          Create a simple boolean value.
SimpleValue(byte[] bytes)
          Create a simple binary value.
SimpleValue(Date dateValue)
          Create a simple datetime value.
SimpleValue(String stringValue)
          Create a simple string value.
 
Method Summary
 boolean equals(Object o)
          
 byte[] getBinaryValue()
          Retrieves the simple binary value.
 Boolean getBooleanValue()
          Retrieves the simple value as a boolean.
 Date getDateValue()
          Retrieves the simple value as a date.
 Double getDoubleValue()
          Retrieves the simple value as a double.
 Long getLongValue()
          Retrieves the simple value as a long.
 String getStringValue()
          Retrieves the simple value as a string.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleValue

public SimpleValue(String stringValue)
Create a simple string value.

Parameters:
stringValue - The string value.

SimpleValue

public SimpleValue(Boolean booleanValue)
Create a simple boolean value.

Parameters:
booleanValue - The boolean value.

SimpleValue

public SimpleValue(Date dateValue)
Create a simple datetime value.

Parameters:
dateValue - The datetime value.

SimpleValue

public SimpleValue(byte[] bytes)
Create a simple binary value.

Parameters:
bytes - The binary value.
Method Detail

getStringValue

public String getStringValue()
Retrieves the simple value as a string.

Returns:
The simple value as a string.

getBooleanValue

public Boolean getBooleanValue()
Retrieves the simple value as a boolean.

Returns:
The simple value as a boolean.

getDoubleValue

public Double getDoubleValue()
Retrieves the simple value as a double.

Returns:
The simple value as a double.

getLongValue

public Long getLongValue()
Retrieves the simple value as a long.

Returns:
The simple value as a long.

getDateValue

public Date getDateValue()
Retrieves the simple value as a date.

Returns:
The simple value as a date.

getBinaryValue

public byte[] getBinaryValue()
Retrieves the simple binary value.

Returns:
The simple binary value.

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2011-2012 UnboundID. All Rights Reserved.