|
||||||||||
| 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.Sequence
public class Sequence
| Field Summary |
|---|
| Fields inherited from class org.openfast.template.Field |
|---|
id, key, name, optional |
| Constructor Summary | |
|---|---|
Sequence(QName name,
Field[] fields,
boolean optional)
Sequence Constructor - Sets the implicitLength to true |
|
Sequence(QName name,
Scalar length,
Field[] fields,
boolean optional)
Sequence Constructor - If no length, a length is created and the implicitLength is set to true. |
|
Sequence(java.lang.String name,
Field[] fields,
boolean optional)
|
|
| Method Summary | |
|---|---|
FieldValue |
createValue(java.lang.String value)
createValue method declaration |
FieldValue |
decode(java.io.InputStream in,
Group template,
Context context,
BitVectorReader pmapReader)
Decode the specified stream of data |
byte[] |
encode(FieldValue value,
Group template,
Context context,
BitVectorBuilder presenceMapBuilder)
Store the data passed to a byte array |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttribute(QName name)
|
Field |
getField(int index)
Find a specific field |
int |
getFieldCount()
Find the number of fields in the current group |
Group |
getGroup()
|
Scalar |
getLength()
Find the length of a Scalar value |
java.lang.String |
getTypeName()
getTypeName method declaration |
QName |
getTypeReference()
|
java.lang.Class |
getValueType()
getValueType method declaration |
boolean |
hasAttribute(QName attributeName)
|
boolean |
hasField(java.lang.String fieldName)
|
int |
hashCode()
|
boolean |
hasTypeReference()
|
boolean |
isImplicitLength()
|
boolean |
isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue)
isPresenceMapBitSet method declaration |
void |
setTypeReference(QName typeReference)
Set the type reference |
java.lang.String |
toString()
|
boolean |
usesPresenceMapBit()
usesPresenceMapBit method declaration |
| Methods inherited from class org.openfast.template.Field |
|---|
addAttribute, getId, getKey, getName, getQName, isOptional, isPresent, setId, setKey |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sequence(QName name,
Field[] fields,
boolean optional)
name - The name of the sequence as a stringfields - Field array objectoptional - Determines if the Field is required or not for the data
public Sequence(java.lang.String name,
Field[] fields,
boolean optional)
public Sequence(QName name,
Scalar length,
Field[] fields,
boolean optional)
name - Name of the sequence, a stringlength - Length of the sequence, a Scalar valuefields - Field arrayoptional - Determines if the Field is required or not for the data| Method Detail |
|---|
public int getFieldCount()
getFieldCount in interface FieldSetpublic Field getField(int index)
getField in interface FieldSetindex - The field index that is passed
public Scalar getLength()
public boolean usesPresenceMapBit()
Field
usesPresenceMapBit in class Field
public boolean isPresenceMapBitSet(byte[] encoding,
FieldValue fieldValue)
Field
isPresenceMapBitSet in class Fieldencoding - Byte array to be checked if there is a MapBitfieldValue - FieldValue object
public byte[] encode(FieldValue value,
Group template,
Context context,
BitVectorBuilder presenceMapBuilder)
encode in class Fieldvalue - The FieldValue objecttemplate - The Group that is to be storedcontext - The previous object to keep the data in syncpresenceMapBuilder - The BitVectorBuilder object to be encoded
public FieldValue decode(java.io.InputStream in,
Group template,
Context context,
BitVectorReader pmapReader)
decode in class Fieldin - The input stream to be decodedtemplate - Which Group template is to be decodedcontext - The previous object to keep the data in syncpresent -
public java.lang.Class getValueType()
Field
getValueType in class Fieldpublic FieldValue createValue(java.lang.String value)
Field
createValue in class Fieldvalue - String of the new SequenceValue to create
public java.lang.String getTypeName()
Field
getTypeName in class Fieldpublic Group getGroup()
public boolean hasField(java.lang.String fieldName)
fieldName - String of the FieldName that is to be found
public boolean isImplicitLength()
public void setTypeReference(QName typeReference)
typeReference - The type reference name as a stringpublic QName getTypeReference()
public boolean hasTypeReference()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean hasAttribute(QName attributeName)
hasAttribute in class Fieldpublic java.lang.String getAttribute(QName name)
getAttribute in class Field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||