org.openfast.template
Class ComposedScalar

java.lang.Object
  extended by org.openfast.template.Field
      extended by org.openfast.template.ComposedScalar
All Implemented Interfaces:
java.io.Serializable

public class ComposedScalar
extends Field

See Also:
Serialized Form

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

ComposedScalar

public ComposedScalar(java.lang.String name,
                      Type type,
                      Scalar[] fields,
                      boolean optional,
                      ComposedValueConverter valueConverter)

ComposedScalar

public ComposedScalar(QName name,
                      Type type,
                      Scalar[] fields,
                      boolean optional,
                      ComposedValueConverter valueConverter)
Method Detail

createValue

public FieldValue createValue(java.lang.String value)
Description copied from class: Field
createValue method declaration

Specified by:
createValue in class Field
Parameters:
value - The string of the FieldValue that is to be created

decode

public FieldValue decode(java.io.InputStream in,
                         Group template,
                         Context context,
                         BitVectorReader presenceMapReader)
Description copied from class: Field
FieldValue decode method declaration

Specified by:
decode in class Field
Parameters:
in - The inputStream to be decoded
template - The Group object to be decoded
context - The previous object to keep the data in sync

encode

public byte[] encode(FieldValue value,
                     Group template,
                     Context context,
                     BitVectorBuilder presenceMapBuilder)
Description copied from class: Field
byte[] encode method declaration

Specified by:
encode in class Field
Parameters:
value - The FieldValue object to be encoded
template - The Group object to be encoded
context - The previous object to keep the data in sync
presenceMapBuilder - The BitVectorBuilder object to be encoded

getTypeName

public java.lang.String getTypeName()
Description copied from class: Field
getTypeName method declaration

Specified by:
getTypeName in class Field

getValueType

public java.lang.Class getValueType()
Description copied from class: Field
getValueType method declaration

Specified by:
getValueType in class Field

isPresenceMapBitSet

public boolean isPresenceMapBitSet(byte[] encoding,
                                   FieldValue fieldValue)
Description copied from class: Field
isPresenceMapBitSet method declaration

Specified by:
isPresenceMapBitSet in class Field
Parameters:
encoding - The byte array to check if it is present
fieldValue - The fieldValue object

usesPresenceMapBit

public boolean usesPresenceMapBit()
Description copied from class: Field
usesPresenceMapBit method declaration

Specified by:
usesPresenceMapBit in class Field

getType

public Type getType()

getFields

public Scalar[] getFields()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008 The LaSalle Technology Group, LLC. All Rights Reserved.