public class Sequence extends Field implements FieldSet
attributes, name
Constructor and Description |
---|
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(String name,
Field[] fields,
boolean optional) |
Modifier and Type | Method and Description |
---|---|
FieldValue |
createValue(String value)
createValue method declaration
|
FieldValue |
decode(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(Object obj) |
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
|
String |
getTypeName()
getTypeName method declaration
|
QName |
getTypeReference() |
Class |
getValueType()
getValueType method declaration
|
boolean |
hasAttribute(QName attributeName) |
boolean |
hasField(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
|
String |
toString() |
boolean |
usesPresenceMapBit()
usesPresenceMapBit method declaration
|
getId, getKey, getName, getQName, getTemplate, isOptional, isPresent, setId, setKey, setMessageTemplate
addNode, getAttributes, getChildren, getNodeName, getNodes, hasChild, setAttribute
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 datapublic 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 datapublic int getFieldCount()
getFieldCount
in interface FieldSet
public Field getField(int index)
public Scalar getLength()
public boolean usesPresenceMapBit()
Field
usesPresenceMapBit
in class Field
public boolean isPresenceMapBitSet(byte[] encoding, FieldValue fieldValue)
Field
isPresenceMapBitSet
in class Field
encoding
- Byte array to be checked if there is a MapBitfieldValue
- FieldValue objectpublic byte[] encode(FieldValue value, Group template, Context context, BitVectorBuilder presenceMapBuilder)
public FieldValue decode(InputStream in, Group template, Context context, BitVectorReader pmapReader)
decode
in class Field
in
- The input stream to be decodedtemplate
- Which Group template is to be decodedcontext
- The previous object to keep the data in syncpresent
- public Class getValueType()
Field
getValueType
in class Field
public FieldValue createValue(String value)
Field
createValue
in class Field
value
- String of the new SequenceValue to createpublic String getTypeName()
Field
getTypeName
in class Field
public Group getGroup()
public boolean hasField(String fieldName)
fieldName
- String of the FieldName that is to be foundpublic boolean isImplicitLength()
public void setTypeReference(QName typeReference)
typeReference
- The type reference name as a stringpublic QName getTypeReference()
public boolean hasTypeReference()
public boolean hasAttribute(QName attributeName)
hasAttribute
in interface Node
hasAttribute
in class SimpleNode
public String getAttribute(QName name)
getAttribute
in interface Node
getAttribute
in class SimpleNode
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.