public interface StaticStructure extends Structure
A static structure provides getters/setters for access to the fields known at generation time. It may contain additional dynamic fields which can be accessed using method from this interface.
Modifier and Type | Method and Description |
---|---|
DataValue |
_getDynamicField(java.lang.String fieldName)
Get a dynamic field value, doesn't allow access to static fields (which
have getters/setters).
|
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 definition 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()