|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openfast.template.Field
org.openfast.template.ComposedScalar
public class ComposedScalar
| Field Summary |
|---|
| Fields inherited from class org.openfast.template.Field |
|---|
id, key, name, optional |
| Constructor Summary | |
|---|---|
ComposedScalar(QName name,
Type type,
Scalar[] fields,
boolean optional,
ComposedValueConverter valueConverter)
|
|
ComposedScalar(java.lang.String name,
Type type,
Scalar[] fields,
boolean optional,
ComposedValueConverter valueConverter)
|
|
| Method Summary | |
|---|---|
FieldValue |
createValue(java.lang.String value)
createValue method declaration |
FieldValue |
decode(java.io.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(java.lang.Object obj)
|
Scalar[] |
getFields()
|
Type |
getType()
|
java.lang.String |
getTypeName()
getTypeName method declaration |
java.lang.Class |
getValueType()
getValueType method declaration |
int |
hashCode()
|
boolean |
isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue)
isPresenceMapBitSet method declaration |
java.lang.String |
toString()
|
boolean |
usesPresenceMapBit()
usesPresenceMapBit method declaration |
| Methods inherited from class org.openfast.template.Field |
|---|
addAttribute, getAttribute, getId, getKey, getName, getQName, hasAttribute, isOptional, isPresent, setId, setKey |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComposedScalar(java.lang.String name,
Type type,
Scalar[] fields,
boolean optional,
ComposedValueConverter valueConverter)
public ComposedScalar(QName name,
Type type,
Scalar[] fields,
boolean optional,
ComposedValueConverter valueConverter)
| Method Detail |
|---|
public FieldValue createValue(java.lang.String value)
Field
createValue in class Fieldvalue - The string of the FieldValue that is to be created
public FieldValue decode(java.io.InputStream in,
Group template,
Context context,
BitVectorReader presenceMapReader)
Field
decode in class Fieldin - The inputStream to be decodedtemplate - The Group object to be decodedcontext - The previous object to keep the data in sync
public byte[] encode(FieldValue value,
Group template,
Context context,
BitVectorBuilder presenceMapBuilder)
Field
encode in class Fieldvalue - The FieldValue object to be encodedtemplate - The Group object to be encodedcontext - The previous object to keep the data in syncpresenceMapBuilder - The BitVectorBuilder object to be encodedpublic java.lang.String getTypeName()
Field
getTypeName in class Fieldpublic java.lang.Class getValueType()
Field
getValueType in class Field
public boolean isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue)
Field
isPresenceMapBitSet in class Fieldencoding - The byte array to check if it is presentfieldValue - The fieldValue objectpublic boolean usesPresenceMapBit()
Field
usesPresenceMapBit in class Fieldpublic Type getType()
public Scalar[] getFields()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||