public interface StaticStructure extends Structure
Modifier and Type | Method and Description |
---|---|
DataValue |
_getDynamicField(java.lang.String fieldName)
Get dynamic filed value.
|
java.util.Set<java.lang.String> |
_getDynamicFieldNames()
Get the names of the dynamic fields in the structure.
|
com.vmware.vapi.bindings.type.StructType |
_getType()
WARNING: Internal method, subject to change in future versions.
|
void |
_setDynamicField(java.lang.String fieldName,
DataValue fieldValue)
Sets a dynamic field value.
|
void |
_validate()
Validates the state of the discriminated unions and HasFieldsOf
restrictions (if any) in this Java language binding
Structure . |
java.lang.String |
toString()
Returns a string representation of this structure.
|
_convertTo, _getCanonicalName, _getDataValue, _hasTypeNameOf
com.vmware.vapi.bindings.type.StructType _getType()
StructType
instance representing the static bindings
type for this Structure
.StructType
void _validate()
Structure
.
More precisely, for each union: given value of the discriminant/tag
field (@UnionTag
in the IDL) of an union in this structure,
validates that:
CoreException
- if some constraint is not satisfiedjava.lang.String toString()
In general no code should depend on the format of the resulting string. E.g. there must be no attempts to parse for re-creation of the original instance.
toString
in class java.lang.Object
void _setDynamicField(java.lang.String fieldName, DataValue fieldValue)
fieldName
- canonical name of the dynamic field to setfieldValue
- the value of the fieldBindingsException
- in case there is a field in the static
structure part with that nameDataValue _getDynamicField(java.lang.String fieldName)
fieldName
- the canonical name of the dynamic fieldDataValue
of the dynamic fieldBindingsException
- if there is no dynamic field with that namejava.util.Set<java.lang.String> _getDynamicFieldNames()