public interface PVStructure extends PVField, BitSetSerializable
Modifier and Type | Method and Description |
---|---|
void |
appendPVField(String fieldName,
PVField pvField)
Append a new PVField to this structure.
|
void |
appendPVFields(String[] fieldNames,
PVField[] pvFields)
Append a PVField[].
|
boolean |
checkValid()
Check if PVStructure and sub fields are valid.
|
PVBoolean |
getBooleanField(String fieldName)
Find a boolean subfield with the specified fieldName.
|
PVByte |
getByteField(String fieldName)
Find a byte subfield with the specified fieldName.
|
PVDouble |
getDoubleField(String fieldName)
Find a double subfield with the specified fieldName.
|
String |
getExtendsStructureName()
Get the name of structure that this structure extends.
|
PVFloat |
getFloatField(String fieldName)
Find a float subfield with the specified fieldName.
|
PVInt |
getIntField(String fieldName)
Find an int subfield with the specified fieldName.
|
PVLong |
getLongField(String fieldName)
Find a long subfield with the specified fieldName.
|
PVField[] |
getPVFields()
Get the PVField array for the nodes of the structure.
|
PVScalarArray |
getScalarArrayField(String fieldName,
ScalarType elementType)
Find an array subfield with the specified fieldName and elementType.
|
PVShort |
getShortField(String fieldName)
Find a short subfield with the specified fieldName.
|
PVString |
getStringField(String fieldName)
Find a string subfield with the specified fieldName.
|
Structure |
getStructure()
Get the Structure introspection interface.
|
PVStructureArray |
getStructureArrayField(String fieldName)
Find a structureArray subfield with the specified fieldName.
|
PVStructure |
getStructureField(String fieldName)
Find a structure subfield with the specified fieldName
The fieldName is of the form name.name...
|
<T extends PVField> |
getSubField(Class<T> c,
int fieldOffset)
Get the PVField with the specified offset.
|
<T extends PVField> |
getSubField(Class<T> c,
String fieldName)
Get the PVField subfield with name fieldName.
|
PVField |
getSubField(int fieldOffset)
Get the PVField with the specified offset.
|
PVField |
getSubField(String fieldName)
Get the PVField subfield with name fieldName.
|
PVUnionArray |
getUnionArrayField(String fieldName)
Find a unionArray subfield with the specified fieldName.
|
PVUnion |
getUnionField(String fieldName)
Find a unon subfield with the specified fieldName.
|
boolean |
putExtendsStructureName(String extendsStructureName)
Specify the structure that this structure extends.
|
void |
removePVField(String fieldName)
Remove a field.
|
void |
replacePVField(PVField oldPVField,
PVField newPVField)
Replace a field with a new field.
|
getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, isImmutable, postPut, renameField, setImmutable, setPostHandler, setRequester, toString, toString, toString
getRequesterName, message
deserialize, serialize
deserialize, serialize
Structure getStructure()
PVField[] getPVFields()
PVField getSubField(String fieldName)
fieldName
- The fieldName.PVField getSubField(int fieldOffset)
fieldOffset
- The offset.<T extends PVField> T getSubField(Class<T> c, String fieldName)
c
- expected class of a requested field.fieldName
- The fieldName.c
type.<T extends PVField> T getSubField(Class<T> c, int fieldOffset)
c
- expected class of a requested field.fieldOffset
- The offset.c
type.void appendPVField(String fieldName, PVField pvField)
fieldName
- The name of the fueld to append,pvField
- The field to append.void appendPVFields(String[] fieldNames, PVField[] pvFields)
fieldNames
- The names for the new fields.pvFields
- The fields to append.
Note that if the original number of fields is 0 than pvFields replaces the original.
Thus the caller must NOT reuse pvFields after calling this method.void removePVField(String fieldName)
fieldName
- The name of the field to remove.void replacePVField(PVField oldPVField, PVField newPVField)
oldPVField
- The old field.newPVField
- The new field.PVBoolean getBooleanField(String fieldName)
fieldName
- The field name to find.PVByte getByteField(String fieldName)
fieldName
- The field name to find.PVShort getShortField(String fieldName)
fieldName
- The field name to find.PVInt getIntField(String fieldName)
fieldName
- The field name to find.PVLong getLongField(String fieldName)
fieldName
- The field name to find.PVFloat getFloatField(String fieldName)
fieldName
- The field name to find.PVDouble getDoubleField(String fieldName)
fieldName
- The field name to find.PVString getStringField(String fieldName)
fieldName
- The field name to find.PVStructure getStructureField(String fieldName)
fieldName
- The field name to find.PVScalarArray getScalarArrayField(String fieldName, ScalarType elementType)
fieldName
- The field name to find.PVStructureArray getStructureArrayField(String fieldName)
fieldName
- The field name to find.PVUnion getUnionField(String fieldName)
fieldName
- The field name to find.PVUnionArray getUnionArrayField(String fieldName)
fieldName
- The field name to find.String getExtendsStructureName()
boolean putExtendsStructureName(String extendsStructureName)
extendsStructureName
- The structure this structure extends.boolean checkValid()
Copyright © 2014. All Rights Reserved.