public class ComposedScalar extends Field
attributes, name
Constructor and Description |
---|
ComposedScalar(QName name,
Type type,
Scalar[] fields,
boolean optional,
ComposedValueConverter valueConverter) |
ComposedScalar(String name,
Type type,
Scalar[] fields,
boolean optional,
ComposedValueConverter valueConverter) |
Modifier and Type | Method and Description |
---|---|
FieldValue |
createValue(String value)
createValue method declaration
|
FieldValue |
decode(InputStream in,
Group template,
Context context,
BitVectorReader presenceMapReader)
FieldValue decode method declaration
|
byte[] |
encode(FieldValue value,
Group template,
Context context,
BitVectorBuilder presenceMapBuilder)
byte[] encode method declaration
|
boolean |
equals(Object obj) |
Scalar[] |
getFields() |
Type |
getType() |
String |
getTypeName()
getTypeName method declaration
|
Class |
getValueType()
getValueType method declaration
|
int |
hashCode() |
boolean |
isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue)
isPresenceMapBitSet method declaration
|
String |
toString() |
boolean |
usesPresenceMapBit()
usesPresenceMapBit method declaration
|
getId, getKey, getName, getQName, getTemplate, isOptional, isPresent, setId, setKey, setMessageTemplate
addNode, getAttribute, getAttributes, getChildren, getNodeName, getNodes, hasAttribute, hasChild, setAttribute
public ComposedScalar(String name, Type type, Scalar[] fields, boolean optional, ComposedValueConverter valueConverter)
public ComposedScalar(QName name, Type type, Scalar[] fields, boolean optional, ComposedValueConverter valueConverter)
public FieldValue createValue(String value)
Field
createValue
in class Field
value
- The string of the FieldValue that is to be createdpublic FieldValue decode(InputStream in, Group template, Context context, BitVectorReader presenceMapReader)
Field
public byte[] encode(FieldValue value, Group template, Context context, BitVectorBuilder presenceMapBuilder)
Field
public String getTypeName()
Field
getTypeName
in class Field
public Class getValueType()
Field
getValueType
in class Field
public boolean isPresenceMapBitSet(byte[] encoding, FieldValue fieldValue)
Field
isPresenceMapBitSet
in class Field
encoding
- The byte array to check if it is presentfieldValue
- The fieldValue objectpublic boolean usesPresenceMapBit()
Field
usesPresenceMapBit
in class Field
public Type getType()
public Scalar[] getFields()
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.