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 Details

  • Constructor Details

  • 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 is String
    • 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 is String
    • 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 is String
    • 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 is String
    • 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 is String
    • 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 is String
    • 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 is String
    • isSetBooleanValue

      public boolean isSetBooleanValue()
    • getModelLinkAttributeValue

      public ModelLinkAttributeValue getModelLinkAttributeValue()
      Gets the value of the modelLinkAttributeValue property.
      Returns:
      possible object is ModelLinkAttributeValue
    • setModelLinkAttributeValue

      public void setModelLinkAttributeValue​(ModelLinkAttributeValue value)
      Sets the value of the modelLinkAttributeValue property.
      Parameters:
      value - allowed object is ModelLinkAttributeValue
    • isSetModelLinkAttributeValue

      public boolean isSetModelLinkAttributeValue()
    • getAddressValue

      public AddressImpl getAddressValue()
      Gets the value of the addressValue property.
      Returns:
      possible object is AddressImpl
    • setAddressValue

      public void setAddressValue​(AddressImpl value)
      Sets the value of the addressValue property.
      Parameters:
      value - allowed object is AddressImpl
    • isSetAddressValue

      public boolean isSetAddressValue()
    • getDurationValue

      public DurationValue getDurationValue()
      Gets the value of the durationValue property.
      Returns:
      possible object is DurationValue
    • setDurationValue

      public void setDurationValue​(DurationValue value)
      Sets the value of the durationValue property.
      Parameters:
      value - allowed object is DurationValue
    • 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 is String
    • 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 class java.lang.Object
      See Also:
      Object.toString()
    • getValue

      public java.lang.Object getValue​(FieldType fieldType)
      Returns the value within the AttributeValue as specified by the given FieldType
      Parameters:
      attributeValue - AttributeValue object to get value from
      fieldType - 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

      public FieldType getFieldType()
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object