public interface StaticStructure extends Structure
Modifier and Type | Method and Description |
---|---|
DataValue |
_getDynamicField(String fieldName)
Get dynamic filed value.
|
Set<String> |
_getDynamicFieldNames()
Get the names of the dynamic fields in the structure.
|
StructType |
_getType()
WARNING: Internal API, subject to change in future versions.
|
void |
_setDynamicField(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 . |
String |
toString()
Returns a string representation of this structure.
|
_convertTo, _getCanonicalName, _getDataValue, _hasTypeNameOf
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 satisfiedString 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.
void _setDynamicField(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(String fieldName)
fieldName
- the canonical name of the dynamic fieldDataValue
of the dynamic fieldBindingsException
- if there is no dynamic field with that nameCopyright © 2015. All Rights Reserved.