public class UDTPhysicalPossrepImplementation extends java.lang.Object implements PossRepImplementation_V0105
| Constructor and Description |
|---|
UDTPhysicalPossrepImplementation()
Deprecated.
- this method is exclusively for use by the Externalizable() machinery
|
UDTPhysicalPossrepImplementation(java.lang.String typeName,
java.lang.String possrepName,
java.util.LinkedHashMap<NameIdentifier,TypeDeclaration> components)
Creates the UDTPhysicalPossrepImplementation
|
| Modifier and Type | Method and Description |
|---|---|
MyReadOnlyLinkedHashMap<NameIdentifier,TypeDeclaration> |
getComponentIdentifierTypeDeclarationsMap()
Gets a map of component names to corresponding type declarations.
|
MyReadOnlyMap<java.lang.String,java.lang.String> |
getComponentNameMap()
Gets a map of component/type names.
|
ReadOnlyMap<java.lang.String,TypeDeclaration> |
getComponentTypeDeclarationsMap()
Gets a map of component names to corresponding type declarations.
|
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
|
ValueBuffer |
getComponentValue(java.lang.String componentName,
ValueBuffer valueBuffer,
Heading nonScalarHeading)
"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
|
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
|
java.lang.String |
getPossrepName()
Gets the possrep name
|
boolean |
hasVariableLengthEncoding()
Gets physicalEncodingLength
|
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.
|
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 |
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 |
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 |
valueToExternalRepresentation(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep.
|
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.
|
@Deprecated public UDTPhysicalPossrepImplementation()
public UDTPhysicalPossrepImplementation(java.lang.String typeName,
java.lang.String possrepName,
java.util.LinkedHashMap<NameIdentifier,TypeDeclaration> components)
typeName - The type namepossrepName - The possrep namecomponents - The mapping of component names to component type names, in the order of appearance in the physical encoding of the valuespublic MyReadOnlyLinkedHashMap<NameIdentifier,TypeDeclaration> getComponentIdentifierTypeDeclarationsMap()
PossRepImplementation_V0105getComponentIdentifierTypeDeclarationsMap in interface PossRepImplementation_V0105public final MyReadOnlyMap<java.lang.String,java.lang.String> getComponentNameMap()
PossRepImplementationgetComponentNameMap in interface PossRepImplementationpublic ReadOnlyMap<java.lang.String,TypeDeclaration> getComponentTypeDeclarationsMap()
PossRepImplementationgetComponentTypeDeclarationsMap in interface PossRepImplementationpublic final ValueBuffer getComponentValue(java.lang.String componentName, ScalarValueBuffer valueBuffer)
PossRepImplementationgetComponentValue in interface PossRepImplementationcomponentName - The possrep component NamevalueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractedpublic final ValueBuffer getComponentValue(java.lang.String componentName, ValueBuffer valueBuffer)
PossRepImplementationgetComponentValue in interface PossRepImplementationcomponentName - The possrep component NamevalueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractedpublic ValueBuffer getComponentValue(java.lang.String componentName, ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105getComponentValue in interface PossRepImplementation_V0105componentName - 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.public MyReadOnlyMap<java.lang.String,ValueBuffer> getComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementationgetComponentValues in interface PossRepImplementationvalueBuffer - 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 alonepublic MyReadOnlyMap<NameIdentifier,ValueBuffer> getIdentifierComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105getIdentifierComponentValues in interface PossRepImplementation_V0105valueBuffer - 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 alonepublic final java.lang.String getPossrepName()
PossRepImplementationgetPossrepName in interface PossRepImplementationpublic final boolean hasVariableLengthEncoding()
public final ValueBuffer valueFromComponentValues(java.util.Map<java.lang.String,ValueBuffer> componentValueMap) throws InvalidValueException
PossRepImplementationvalueFromComponentValues in interface PossRepImplementationcomponentValueMap - 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 typepublic ValueBuffer valueFromExternalRepresentation(java.lang.String value, Heading nonScalarHeading) throws InvalidValueException
PossRepImplementationvalueFromExternalRepresentation in interface PossRepImplementationvalue - 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.public ValueBuffer valueFromIdentifierComponentValues(java.util.Map<NameIdentifier,ValueBuffer> componentValueMap) throws InvalidValueException
PossRepImplementation_V0105valueFromIdentifierComponentValues in interface PossRepImplementation_V0105componentValueMap - 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 typepublic final java.lang.String valueToEscapedExternalRepresentation(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementationvalueToEscapedExternalRepresentation in interface PossRepImplementationvalueBuffer - 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.public java.lang.String valueToEscapedExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105valueToEscapedExternalRepresentationVerbose in interface PossRepImplementation_V0105valueBuffer - 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.public final java.lang.String valueToExternalRepresentation(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementationvalueToExternalRepresentation in interface PossRepImplementationvalueBuffer - 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.public java.lang.String valueToExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105valueToExternalRepresentationVerbose in interface PossRepImplementation_V0105valueBuffer - 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.