public interface PossRepImplementation
Modifier and Type | Method and Description |
---|---|
MyReadOnlyMap<java.lang.String,java.lang.String> |
getComponentNameMap()
Deprecated.
- it is preferrable to upgrade implementations of this interface to
PossRepImplementation_V0105 and use its PossRepImplementation_V0105.getComponentIdentifierTypeDeclarationsMap() method. |
ReadOnlyMap<java.lang.String,TypeDeclaration> |
getComponentTypeDeclarationsMap()
Deprecated.
- it is preferrable to upgrade implementations of this interface to
PossRepImplementation_V0105 and use its PossRepImplementation_V0105.getComponentIdentifierTypeDeclarationsMap() method. |
ValueBuffer |
getComponentValue(java.lang.String componentName,
ScalarValueBuffer valueBuffer)
"Extracts" a possrep component value out of a value of the type
|
ValueBuffer |
getComponentValue(java.lang.String componentName,
ValueBuffer valueBuffer)
"Extracts" a possrep component value out of a value of the type
|
MyReadOnlyMap<java.lang.String,ValueBuffer> |
getComponentValues(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Gets all the possrep component values for a given value of the type this possrep is for
|
java.lang.String |
getPossrepName()
Gets the possrep name
|
ValueBuffer |
valueFromComponentValues(java.util.Map<java.lang.String,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.
|
ValueBuffer |
valueFromExternalRepresentation(java.lang.String value,
Heading nonScalarHeading)
Convert a value of this possrep's type to internal format.
|
java.lang.String |
valueToEscapedExternalRepresentation(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep.
|
java.lang.String |
valueToExternalRepresentation(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep.
|
@Deprecated MyReadOnlyMap<java.lang.String,java.lang.String> getComponentNameMap()
PossRepImplementation_V0105
and use its PossRepImplementation_V0105.getComponentIdentifierTypeDeclarationsMap()
method.@Deprecated ReadOnlyMap<java.lang.String,TypeDeclaration> getComponentTypeDeclarationsMap()
PossRepImplementation_V0105
and use its PossRepImplementation_V0105.getComponentIdentifierTypeDeclarationsMap()
method.ValueBuffer getComponentValue(java.lang.String componentName, ScalarValueBuffer valueBuffer)
componentName
- The possrep component NamevalueBuffer
- The scalarValueBuffer holding the value of which the possrep's component's value is to be extractedValueBuffer getComponentValue(java.lang.String componentName, ValueBuffer valueBuffer)
componentName
- The possrep component NamevalueBuffer
- The scalarValueBuffer holding the value of which the possrep's component's value is to be extractedMyReadOnlyMap<java.lang.String,ValueBuffer> getComponentValues(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 alonejava.lang.String getPossrepName()
ValueBuffer valueFromComponentValues(java.util.Map<java.lang.String,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 typeValueBuffer valueFromExternalRepresentation(java.lang.String value, Heading nonScalarHeading) throws InvalidValueException
value
- the value in external format.nonScalarHeading
- The heading defining the specific nonScalar type, if the type is nonScalar and the value is a body value aloneInvalidValueException
- If the textual representation does not represent a value of the possrep's type.java.lang.String valueToEscapedExternalRepresentation(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 valueToExternalRepresentation(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.