public final class DbmsIntImplementation extends AbstractJavaBackedTypeImplementation_V0105 implements PossRepImplementation_V0105
Constructor and Description |
---|
DbmsIntImplementation()
Deprecated.
- this constructor is provided merely as a consequence of the requirements of the Externalizable machinery. If you need an object of this class in your applications, invoking the getInstance() method is the recommended way to get it.
|
Modifier and Type | Method and Description |
---|---|
ReadOnlyMap<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
|
PossRepImplementation |
getDefaultPossrepImplementation()
The default possrep is the INT possrep, consisting of a single component of type STRING
|
int |
getEncodingLength()
Gets the fixed encoding length, if the type employs fixed-length encoding, i.e.
|
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
|
static DbmsIntImplementation |
getInstance()
Gets the instance
|
static int |
getIntegerFromString(java.lang.String value)
Gets The Integer of the value that value is the external representation of
|
static int |
getJavaInt(ValueBuffer valueBuffer)
Inspects a ScalarValueBuffer holding an integer and returns that integer
|
MyReadOnlySet<PossRepImplementation> |
getPossrepImplementations()
Gets the set of all PossRepImplementations for this type.
|
java.lang.String |
getPossrepName()
Gets the possrep name
|
static ScalarValueBuffer |
getValueBuffer(int i)
Returns a ScalarValueBuffer holding the given integer value
|
boolean |
hasVariableLengthEncoding()
The physical size of an encoding is always 4 bytes
|
void |
readExternal(java.io.ObjectInput in) |
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.
|
void |
writeExternal(java.io.ObjectOutput out) |
getEqualityOperatorImplementation, getOrderingOperatorImplementation, getPossrepImplementation, getRootTypeName, isOfType
getCommonScalarSuperTypeImplementation, getOrdinalOperatorImplementations, getTypeName, getTypeNameIdentifier, valueFromEscapedExternalRepresentation, valueFromEscapedExternalRepresentation, valueFromEscapedExternalRepresentationWithoutException
@Deprecated public DbmsIntImplementation()
public static DbmsIntImplementation getInstance()
public static int getIntegerFromString(java.lang.String value)
value
- A String representing an integer valuepublic static int getJavaInt(ValueBuffer valueBuffer)
valueBuffer
- The scalarvaluebuffer holding an integer valuepublic static ScalarValueBuffer getValueBuffer(int i)
i
- an integerpublic ReadOnlyMap<NameIdentifier,TypeDeclaration> getComponentIdentifierTypeDeclarationsMap()
PossRepImplementation_V0105
getComponentIdentifierTypeDeclarationsMap
in interface PossRepImplementation_V0105
public MyReadOnlyMap<java.lang.String,java.lang.String> getComponentNameMap()
PossRepImplementation
getComponentNameMap
in interface PossRepImplementation
public ReadOnlyMap<java.lang.String,TypeDeclaration> getComponentTypeDeclarationsMap()
PossRepImplementation
getComponentTypeDeclarationsMap
in interface PossRepImplementation
public ValueBuffer getComponentValue(java.lang.String componentName, ScalarValueBuffer valueBuffer)
PossRepImplementation
getComponentValue
in interface PossRepImplementation
componentName
- 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)
PossRepImplementation
getComponentValue
in interface PossRepImplementation
componentName
- 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_V0105
getComponentValue
in interface PossRepImplementation_V0105
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.public MyReadOnlyMap<java.lang.String,ValueBuffer> getComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation
getComponentValues
in interface PossRepImplementation
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 alonepublic PossRepImplementation getDefaultPossrepImplementation()
getDefaultPossrepImplementation
in class AbstractTypeImplementation_V0105
public int getEncodingLength()
AbstractTypeImplementation_V0105
hasVariableLengthEncoding()
method returns 'false'. Types that employ variable-length encodings are required to return a negative value.getEncodingLength
in class AbstractTypeImplementation_V0105
hasVariableLengthEncoding()
method returns 'false'. Types that employ variable-length encodings are required to return a negative value.public MyReadOnlyMap<NameIdentifier,ValueBuffer> getIdentifierComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105
getIdentifierComponentValues
in interface PossRepImplementation_V0105
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 alonepublic MyReadOnlySet<PossRepImplementation> getPossrepImplementations()
AbstractTypeImplementation_V0105
getPossrepImplementations
in class AbstractTypeImplementation_V0105
public java.lang.String getPossrepName()
PossRepImplementation
getPossrepName
in interface PossRepImplementation
public boolean hasVariableLengthEncoding()
hasVariableLengthEncoding
in class AbstractTypeImplementation_V0105
public void readExternal(java.io.ObjectInput in)
readExternal
in interface java.io.Externalizable
public ValueBuffer valueFromComponentValues(java.util.Map<java.lang.String,ValueBuffer> componentValueMap)
PossRepImplementation
valueFromComponentValues
in interface PossRepImplementation
componentValueMap
- A Map holding component names and their corresponding values, held in a ValueBuffer.public ValueBuffer valueFromExternalRepresentation(java.lang.String value, Heading nonScalarHeading)
PossRepImplementation
valueFromExternalRepresentation
in interface PossRepImplementation
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 alonepublic ValueBuffer valueFromIdentifierComponentValues(java.util.Map<NameIdentifier,ValueBuffer> componentValueMap)
PossRepImplementation_V0105
valueFromIdentifierComponentValues
in interface PossRepImplementation_V0105
componentValueMap
- A Map holding component names and their corresponding values, held in a ValueBuffer.public java.lang.String valueToEscapedExternalRepresentation(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation
valueToEscapedExternalRepresentation
in interface PossRepImplementation
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.public java.lang.String valueToEscapedExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105
valueToEscapedExternalRepresentationVerbose
in interface PossRepImplementation_V0105
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.public java.lang.String valueToExternalRepresentation(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation
valueToExternalRepresentation
in interface PossRepImplementation
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.public java.lang.String valueToExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105
valueToExternalRepresentationVerbose
in interface PossRepImplementation_V0105
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.public void writeExternal(java.io.ObjectOutput out)
writeExternal
in interface java.io.Externalizable