public final class LocalizationParam
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
String
, long
, double
,
date time and nested messages. Only one will be used depending on the type of
data sent. For date, double
and long
it is possible to set
additional formatting details. This class was added in vSphere API 7.0.0.0.Modifier and Type | Class and Description |
---|---|
static class |
LocalizationParam.Builder
Builder class for
LocalizationParam . |
static class |
LocalizationParam.DateTimeFormat
The
DateTimeFormat enumeration class lists possible date and time
formatting options. |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
LocalizationParam()
Default constructor.
|
protected |
LocalizationParam(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static LocalizationParam |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static LocalizationParam |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getD()
The
double value associated with the parameter. |
java.util.Calendar |
getDt()
Date and time value associated with the parameter.
|
LocalizationParam.DateTimeFormat |
getFormat()
Format associated with the date and time value in
getDt() property. |
java.lang.Long |
getI()
long value associated with the parameter. |
NestedLocalizableMessage |
getL()
Nested localizable value associated with the parameter.
|
java.lang.Long |
getPrecision()
Number of fractional digits to include in formatted
double value. |
java.lang.String |
getS()
String value associated with the parameter. |
int |
hashCode() |
void |
setD(java.lang.Double d)
The
double value associated with the parameter. |
void |
setDt(java.util.Calendar dt)
Date and time value associated with the parameter.
|
void |
setFormat(LocalizationParam.DateTimeFormat format)
Format associated with the date and time value in
getDt() property. |
void |
setI(java.lang.Long i)
long value associated with the parameter. |
void |
setL(NestedLocalizableMessage l)
Nested localizable value associated with the parameter.
|
void |
setPrecision(java.lang.Long precision)
Number of fractional digits to include in formatted
double value. |
void |
setS(java.lang.String s)
String value associated with the parameter. |
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public LocalizationParam()
protected LocalizationParam(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getS()
String
value associated with the parameter. This property was
added in vSphere API 7.0.0.0.
this property will be set when String
value is used.public void setS(java.lang.String s)
String
value associated with the parameter. This property was
added in vSphere API 7.0.0.0.
this property will be set when String
value is used.s
- New value for the property.public java.util.Calendar getDt()
getFormat()
property to specify date and time display style. This property was added in
vSphere API 7.0.0.0.
this property will be set when date and time value is used.public void setDt(java.util.Calendar dt)
getFormat()
property to specify date and time display style. This property was added in
vSphere API 7.0.0.0.
this property will be set when date and time value is used.dt
- New value for the property.public java.lang.Long getI()
long
value associated with the parameter. This property was added in
vSphere API 7.0.0.0.
this property will be set when long
value is used.public void setI(java.lang.Long i)
long
value associated with the parameter. This property was added in
vSphere API 7.0.0.0.
this property will be set when long
value is used.i
- New value for the property.public java.lang.Double getD()
double
value associated with the parameter. The number of displayed
fractional digits is changed via getPrecision()
property. This property
was added in vSphere API 7.0.0.0.
this property will be set when double
value is used.public void setD(java.lang.Double d)
double
value associated with the parameter. The number of displayed
fractional digits is changed via getPrecision()
property. This property
was added in vSphere API 7.0.0.0.
this property will be set when double
value is used.d
- New value for the property.public NestedLocalizableMessage getL()
boolean
values. It can also be used for proper handling of pluralization and
gender forms in localization. Recursive NestedLocalizableMessage
instances can be used for localizing short lists of items. This property was
added in vSphere API 7.0.0.0.
this property will be set when nested localization message value is used.public void setL(NestedLocalizableMessage l)
boolean
values. It can also be used for proper handling of pluralization and
gender forms in localization. Recursive NestedLocalizableMessage
instances can be used for localizing short lists of items. This property was
added in vSphere API 7.0.0.0.
this property will be set when nested localization message value is used.l
- New value for the property.public LocalizationParam.DateTimeFormat getFormat()
getDt()
property. The
enumeration constant SHORT_DATETIME
will be used as default. This
property was added in vSphere API 7.0.0.0.
this may not be set if enumeration constant SHORT_DATETIME
default
format is appropriatepublic void setFormat(LocalizationParam.DateTimeFormat format)
getDt()
property. The
enumeration constant SHORT_DATETIME
will be used as default. This
property was added in vSphere API 7.0.0.0.
this may not be set if enumeration constant SHORT_DATETIME
default
format is appropriateformat
- New value for the property.public java.lang.Long getPrecision()
double
value. This
property was added in vSphere API 7.0.0.0.
this will be set when exact precision is required for rendering double
numbers.public void setPrecision(java.lang.Long precision)
double
value. This
property was added in vSphere API 7.0.0.0.
this will be set when exact precision is required for rendering double
numbers.precision
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static LocalizationParam _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static LocalizationParam _newInstance2(com.vmware.vapi.data.StructValue structValue)