|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PossRepImplementation
Defines the methods that the implementation class for a SIRA_PRISE PossRep must provide
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getComponentNameMap()
Gets a map of component/type names. |
ValueBuffer |
getComponentValue(java.lang.String componentName,
ScalarValueBuffer valueBuffer)
"Extracts" a possrep component value out of a value of the type |
java.lang.String |
getPossrepName()
Gets the possrep name |
ValueBuffer |
valueFromComponentValues(java.util.HashMap<java.lang.String,ValueBuffer> componentValueMap,
int logicalSize)
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)
Convert a value of this possrep's type to internal format. |
ValueBuffer |
valueFromExternalRepresentation(java.lang.String value,
int maximumLogicalLengthAllowed)
Converts a value of this type from external to internal format, given a specified maximum allowable logical size for the value to be returned. |
java.lang.String |
valueToEscapedExternalRepresentation(ValueBuffer valueBuffer)
Converts a value in internal format to the appropriate textual representation of that value for this possrep. |
java.lang.String |
valueToExternalRepresentation(ValueBuffer valueBuffer)
Converts a value in internal format to the appropriate textual representation of that value for this possrep. |
Method Detail |
---|
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 extracted
java.util.Map<java.lang.String,java.lang.String> getComponentNameMap()
java.lang.String getPossrepName()
ValueBuffer valueFromExternalRepresentation(java.lang.String value) throws InvalidValueException
value
- the value in external format.
InvalidValueException
- If the textual representation does not represent a value of the possrep's type.ValueBuffer valueFromExternalRepresentation(java.lang.String value, int maximumLogicalLengthAllowed) throws InvalidValueException
value
- the textual representation of the value.maximumLogicalLengthAllowed
- the maximum logical length that the returned value can be allowed to have.
InvalidValueException
- If the textual representation does not represent a value of the possrep's type.java.lang.String valueToExternalRepresentation(ValueBuffer valueBuffer)
valueBuffer
- The value in internal format.
java.lang.String valueToEscapedExternalRepresentation(ValueBuffer valueBuffer)
valueBuffer
- The value in internal format.
ValueBuffer valueFromComponentValues(java.util.HashMap<java.lang.String,ValueBuffer> componentValueMap, int logicalSize)
componentValueMap
- A Map holding component names and their corresponding values, held in a ValueBuffer.logicalSize
- The maximum logical size that the returned value is allowed to have. This only applies to certain variable-length types. E.g. imagine that type STRING has a possrep with components LENGTH and NONBLANKS, such that the string represented by LENGTH(12)NONBLANKS(A) represents the string "A ". An InvalidValueException should be thrown if these component values are passed to this method, along with a logicalSize of, say, 8.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |