public interface PossRepImplementation_V0105 extends PossRepImplementation
Modifier and Type | Method and Description |
---|---|
ReadOnlyMap<NameIdentifier,TypeDeclaration> |
getComponentIdentifierTypeDeclarationsMap()
Gets a map of component names to corresponding type declarations.
|
ValueBuffer |
getComponentValue(java.lang.String componentName,
ValueBuffer valueBuffer,
Heading nonScalarHeading)
"Extracts" a possrep component value out of a value of the type.
|
MyReadOnlyMap<NameIdentifier,ValueBuffer> |
getIdentifierComponentValues(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Gets all the possrep component values for a given value of the type this possrep is for
|
ValueBuffer |
valueFromIdentifierComponentValues(java.util.Map<NameIdentifier,ValueBuffer> componentValueMap)
Returns a ValueBuffer holding the value of the type that this PossRepImplementation is for, and that corresponds to the component values given in the componentValueMap argument.
|
java.lang.String |
valueToEscapedExternalRepresentationVerbose(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep, including the surrounding typename (i.e.
|
java.lang.String |
valueToExternalRepresentationVerbose(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep, including the surrounding typename (i.e.
|
getComponentNameMap, getComponentTypeDeclarationsMap, getComponentValue, getComponentValue, getComponentValues, getPossrepName, valueFromComponentValues, valueFromExternalRepresentation, valueToEscapedExternalRepresentation, valueToExternalRepresentation
ReadOnlyMap<NameIdentifier,TypeDeclaration> getComponentIdentifierTypeDeclarationsMap()
ValueBuffer getComponentValue(java.lang.String componentName, ValueBuffer valueBuffer, Heading nonScalarHeading)
componentName
- The possrep component NamevalueBuffer
- The scalarValueBuffer holding the value of which the possrep's component's value is to be extractednonScalarHeading
- The heading defining the nonScalar type that the value in the (nonscalar) valueBuffer is of.MyReadOnlyMap<NameIdentifier,ValueBuffer> getIdentifierComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
valueBuffer
- The scalarValueBuffer holding the value of which the possrep's component's value is to be extractednonScalarHeading
- The heading defining the specific nonScalar type, if the type is nonScalar and the value is a body value aloneValueBuffer valueFromIdentifierComponentValues(java.util.Map<NameIdentifier,ValueBuffer> componentValueMap) throws InvalidValueException
componentValueMap
- A Map holding component names and their corresponding values, held in a ValueBuffer.InvalidValueException
- If the given mapping of component names to component values does not constitute a valid value for the typejava.lang.String valueToEscapedExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
valueBuffer
- The value in internal format.nonScalarHeading
- The heading defining the specific nonScalar type, if the type the value held in valueBuffer is of, is indeed nonScalar. Can be left null for scalar types, as they are not "defined" by a Heading.java.lang.String valueToExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
valueBuffer
- The value in internal format.nonScalarHeading
- The heading defining the specific nonScalar type, if the type the value held in valueBuffer is of, is indeed nonScalar. Can be left null for scalar types, as they are not "defined" by a Heading.