|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.attribute.impl.AttrObject
agg.attribute.view.impl.TupleFormat
public class TupleFormat
Format of an attribute tuple. Usually, only attribute types have a format instance attached to them.
Field Summary | |
---|---|
protected SlotSequence |
allSlots
A container with index positions (slots), containing indices for visible members only. |
static int |
HIDDEN
Constant, returned when a member index is not in the representation. |
protected SlotSequence |
visibleSlots
A container with index positions (slots), containing indices for all tuple members. |
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
Constructor Summary | |
---|---|
TupleFormat(int size)
Constructing with all parameters. |
Method Summary | |
---|---|
void |
addMember(int index)
Appends a new slot for 'index' in each of the position containers. |
void |
deleteMember(int index)
Deletes the slot for 'index' in each of the position containers. |
protected void |
finalize()
|
int |
getIndexAtTotalSlot(int slot)
Returns the member index at the specified slot; If the boolean parameter is true, the slot is interpreted wrt the container with all members, otherwise wrt the container with the visible members only. |
int |
getIndexAtVisibleSlot(int slot)
Returns the member index at the specified slot, wrt the visible position container. |
protected int |
getTotalSlot(int visibleSlot)
Returns the slot for all members containing the same index as the specified slot for visible members. |
int |
getTotalSlotForIndex(int index)
Returns the slot, from the container with all members, for the specified member index. |
int |
getVisibleSize()
Returns the number of visible members. |
protected int |
getVisibleSlot(int totalSlot)
Returns the slot for visible members containing the same index as the specified slot for all members, or 'HIDDEN'. |
int |
getVisibleSlotForIndex(int index)
Returns the slot, from the container with visible members, for the specified member index. |
protected void |
insertIndexInVisible(int index)
Inserting the index in the visible container, so that the order matches that of the total container. |
boolean |
isVisible(int slot)
Testing if the member at a given slot is visible. |
void |
moveSlotInserting(int srcSlot,
int destSlot)
Moves the member at "srcSlot" to "destSlot", inserting-wise. |
boolean |
setVisible(boolean v,
int slot)
Setting, if the attribute member at the specified slot of this view should be visible or not. |
java.lang.String |
toString()
|
Methods inherited from class agg.attribute.impl.AttrObject |
---|
defaultToString, err, err, getInstRepr, log, log, log, logEnteredMethod, logPrintln, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, update, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HIDDEN
protected SlotSequence visibleSlots
protected SlotSequence allSlots
Constructor Detail |
---|
public TupleFormat(int size)
size
- The initial number of slots.Method Detail |
---|
protected void finalize()
finalize
in class java.lang.Object
public void addMember(int index)
public void deleteMember(int index)
public int getVisibleSize()
public boolean isVisible(int slot)
public int getIndexAtVisibleSlot(int slot)
public int getIndexAtTotalSlot(int slot)
public int getTotalSlotForIndex(int index)
public int getVisibleSlotForIndex(int index)
public void moveSlotInserting(int srcSlot, int destSlot)
protected void insertIndexInVisible(int index)
protected int getVisibleSlot(int totalSlot)
protected int getTotalSlot(int visibleSlot)
public boolean setVisible(boolean v, int slot)
public java.lang.String toString()
toString
in class AttrObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |