Package com.onenetwork.platform.common
Class AttributeValue
java.lang.Object
com.onenetwork.platform.common.AttributeValue
- All Implemented Interfaces:
java.io.Serializable
public class AttributeValue
extends java.lang.Object
implements java.io.Serializable
The value of a field which may be one of several data types.
Java class for AttributeValue complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AttributeValue"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <element name="StringValue" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="DateValue" type="{http://www.onenetwork.com/Platform}DateTime"/> <element name="LongValue" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="IntegerValue" type="{http://www.w3.org/2001/XMLSchema}int"/> <element name="DoubleValue" type="{http://www.w3.org/2001/XMLSchema}double"/> <element name="FloatValue" type="{http://www.w3.org/2001/XMLSchema}float"/> <element name="BooleanValue" type="{http://www.w3.org/2001/XMLSchema}boolean"/> <element name="ModelLinkAttributeValue" type="{http://www.onenetwork.com/Platform}ModelLinkAttributeValue"/> <element name="AddressValue" type="{http://www.onenetwork.com/Platform}Address"/> <element name="DurationValue" type="{http://www.onenetwork.com/Platform}DurationValue"/> </choice> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected AddressImpl
addressValue
protected java.lang.Boolean
booleanValue
protected java.util.Calendar
dateValue
protected java.lang.Double
doubleValue
protected DurationValue
durationValue
protected java.lang.Float
floatValue
protected java.lang.Integer
integerValue
protected java.lang.Long
longValue
protected ModelLinkAttributeValue
modelLinkAttributeValue
protected java.lang.String
name
protected java.lang.String
stringValue
-
Constructor Summary
Constructors Constructor Description AttributeValue()
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
AddressImpl
getAddressValue()
Gets the value of the addressValue property.java.util.Calendar
getDateValue()
Gets the value of the dateValue property.java.lang.Double
getDoubleValue()
Gets the value of the doubleValue property.DurationValue
getDurationValue()
Gets the value of the durationValue property.FieldType
getFieldType()
java.lang.Float
getFloatValue()
Gets the value of the floatValue property.java.lang.Integer
getIntegerValue()
Gets the value of the integerValue property.java.lang.Long
getLongValue()
Gets the value of the longValue property.ModelLinkAttributeValue
getModelLinkAttributeValue()
Gets the value of the modelLinkAttributeValue property.java.lang.String
getName()
Gets the value of the name property.java.lang.String
getStringValue()
Gets the value of the stringValue property.java.lang.Object
getValue()
Returns the value of this Attribute by returning the value of the first "set" value in the AttributeValue object.java.lang.Object
getValue(FieldType fieldType)
Returns the value within the AttributeValue as specified by the given FieldTypeint
hashCode()
java.lang.Boolean
isBooleanValue()
Gets the value of the booleanValue property.boolean
isSetAddressValue()
boolean
isSetBooleanValue()
boolean
isSetDateValue()
boolean
isSetDoubleValue()
boolean
isSetDurationValue()
boolean
isSetFloatValue()
boolean
isSetIntegerValue()
boolean
isSetLongValue()
boolean
isSetModelLinkAttributeValue()
boolean
isSetName()
boolean
isSetStringValue()
void
setAddressValue(AddressImpl value)
Sets the value of the addressValue property.void
setBooleanValue(java.lang.Boolean value)
Sets the value of the booleanValue property.void
setDateValue(java.util.Calendar value)
Sets the value of the dateValue property.void
setDoubleValue(java.lang.Double value)
Sets the value of the doubleValue property.void
setDurationValue(DurationValue value)
Sets the value of the durationValue property.void
setFloatValue(java.lang.Float value)
Sets the value of the floatValue property.void
setIntegerValue(java.lang.Integer value)
Sets the value of the integerValue property.void
setLongValue(java.lang.Long value)
Sets the value of the longValue property.void
setModelLinkAttributeValue(ModelLinkAttributeValue value)
Sets the value of the modelLinkAttributeValue property.void
setName(java.lang.String value)
Sets the value of the name property.void
setStringValue(java.lang.String value)
Sets the value of the stringValue property.void
setValue(java.lang.Object value)
Sets the Attribute value according to the value object.java.lang.String
toString()
-
Field Details
-
stringValue
protected java.lang.String stringValue -
dateValue
protected java.util.Calendar dateValue -
longValue
protected java.lang.Long longValue -
integerValue
protected java.lang.Integer integerValue -
doubleValue
protected java.lang.Double doubleValue -
floatValue
protected java.lang.Float floatValue -
booleanValue
protected java.lang.Boolean booleanValue -
modelLinkAttributeValue
-
addressValue
-
durationValue
-
name
protected java.lang.String name
-
-
Constructor Details
-
AttributeValue
public AttributeValue()
-
-
Method Details
-
getStringValue
public java.lang.String getStringValue()Gets the value of the stringValue property.- Returns:
- possible object is
String
-
setStringValue
public void setStringValue(java.lang.String value)Sets the value of the stringValue property.- Parameters:
value
- allowed object isString
-
isSetStringValue
public boolean isSetStringValue() -
getDateValue
public java.util.Calendar getDateValue()Gets the value of the dateValue property.- Returns:
- possible object is
String
-
setDateValue
public void setDateValue(java.util.Calendar value)Sets the value of the dateValue property.- Parameters:
value
- allowed object isString
-
isSetDateValue
public boolean isSetDateValue() -
getLongValue
public java.lang.Long getLongValue()Gets the value of the longValue property.- Returns:
- possible object is
String
-
setLongValue
public void setLongValue(java.lang.Long value)Sets the value of the longValue property.- Parameters:
value
- allowed object isString
-
isSetLongValue
public boolean isSetLongValue() -
getIntegerValue
public java.lang.Integer getIntegerValue()Gets the value of the integerValue property.- Returns:
- possible object is
String
-
setIntegerValue
public void setIntegerValue(java.lang.Integer value)Sets the value of the integerValue property.- Parameters:
value
- allowed object isString
-
isSetIntegerValue
public boolean isSetIntegerValue() -
getDoubleValue
public java.lang.Double getDoubleValue()Gets the value of the doubleValue property.- Returns:
- possible object is
String
-
setDoubleValue
public void setDoubleValue(java.lang.Double value)Sets the value of the doubleValue property.- Parameters:
value
- allowed object isString
-
isSetDoubleValue
public boolean isSetDoubleValue() -
getFloatValue
public java.lang.Float getFloatValue()Gets the value of the floatValue property.- Returns:
- possible object is
String
-
setFloatValue
public void setFloatValue(java.lang.Float value)Sets the value of the floatValue property.- Parameters:
value
- allowed object isString
-
isSetFloatValue
public boolean isSetFloatValue() -
isBooleanValue
public java.lang.Boolean isBooleanValue()Gets the value of the booleanValue property.- Returns:
- possible object is
String
-
setBooleanValue
public void setBooleanValue(java.lang.Boolean value)Sets the value of the booleanValue property.- Parameters:
value
- allowed object isString
-
isSetBooleanValue
public boolean isSetBooleanValue() -
getModelLinkAttributeValue
Gets the value of the modelLinkAttributeValue property.- Returns:
- possible object is
ModelLinkAttributeValue
-
setModelLinkAttributeValue
Sets the value of the modelLinkAttributeValue property.- Parameters:
value
- allowed object isModelLinkAttributeValue
-
isSetModelLinkAttributeValue
public boolean isSetModelLinkAttributeValue() -
getAddressValue
Gets the value of the addressValue property.- Returns:
- possible object is
AddressImpl
-
setAddressValue
Sets the value of the addressValue property.- Parameters:
value
- allowed object isAddressImpl
-
isSetAddressValue
public boolean isSetAddressValue() -
getDurationValue
Gets the value of the durationValue property.- Returns:
- possible object is
DurationValue
-
setDurationValue
Sets the value of the durationValue property.- Parameters:
value
- allowed object isDurationValue
-
isSetDurationValue
public boolean isSetDurationValue() -
getName
public java.lang.String getName()Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)Sets the value of the name property.- Parameters:
value
- allowed object isString
-
isSetName
public boolean isSetName() -
getValue
public java.lang.Object getValue()Returns the value of this Attribute by returning the value of the first "set" value in the AttributeValue object.- Returns:
- the value of the associated AttributeValue or null if value is null or not set
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
getValue
Returns the value within the AttributeValue as specified by the given FieldType- Parameters:
attributeValue
- AttributeValue object to get value fromfieldType
- specifies which attribute of the AttributeValue to return- Returns:
- the value of the AttributeValue specified by fieldType
-
setValue
public void setValue(java.lang.Object value)Sets the Attribute value according to the value object. No data conversion is performed.- Parameters:
value
- the value to assign to the Attribute
-
getFieldType
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-