public class UserDefinedTypeImplementation extends AbstractJavaBackedTypeImplementation_V0105
Constructor and Description |
---|
UserDefinedTypeImplementation()
Deprecated.
- This constructor is publicly available only for reasons to do with the Externalizable machinery. The preferred way of instantiating the class is through the
other constructor |
UserDefinedTypeImplementation(NameIdentifier typeName,
UDTPhysicalPossrepImplementation physicalPossrepImplementation,
MyReadOnlySet<PossRepImplementation> nonPhysicalPossrepImplementations)
Creates the UserDefinedTypeImplementation
|
Modifier and Type | Method and Description |
---|---|
PossRepImplementation |
getDefaultPossrepImplementation()
Gets the possrep implementation that is to be considered the default for the type.
|
int |
getEncodingLength()
Gets the fixed encoding length, if the type employs fixed-length encoding, i.e.
|
MyReadOnlySet<PossRepImplementation> |
getPossrepImplementations()
Gets the set of all PossRepImplementations for this type.
|
boolean |
hasVariableLengthEncoding()
Determines whether the number of bytes used in the physical encoding is the same for any possible value of the type.
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
getEqualityOperatorImplementation, getOrderingOperatorImplementation, getPossrepImplementation, getRootTypeName, isOfType
getCommonScalarSuperTypeImplementation, getOrdinalOperatorImplementations, getTypeName, getTypeNameIdentifier, valueFromEscapedExternalRepresentation, valueFromEscapedExternalRepresentation, valueFromEscapedExternalRepresentationWithoutException
@Deprecated public UserDefinedTypeImplementation()
other constructor
public UserDefinedTypeImplementation(NameIdentifier typeName, UDTPhysicalPossrepImplementation physicalPossrepImplementation, MyReadOnlySet<PossRepImplementation> nonPhysicalPossrepImplementations)
typeName
- The name of the user-defined typephysicalPossrepImplementation
- The physical possrep implementation for this type. This one will be used as the 'default' possrep.nonPhysicalPossrepImplementations
- The set of all the non-physical possreps for this typepublic final PossRepImplementation getDefaultPossrepImplementation()
AbstractTypeImplementation_V0105
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 final boolean hasVariableLengthEncoding()
AbstractTypeImplementation_V0105
hasVariableLengthEncoding
in class AbstractTypeImplementation_V0105
public final MyReadOnlySet<PossRepImplementation> getPossrepImplementations()
AbstractTypeImplementation_V0105
getPossrepImplementations
in class AbstractTypeImplementation_V0105
public final void readExternal(java.io.ObjectInput in) throws java.io.IOException
java.io.IOException
public final void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException