|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.settings.AttributeConstraintsMatrix
public class AttributeConstraintsMatrix
AttributeConstraintsMatrix
Manages the AttributeConstraint
s for the AttributeFilter
by
storing them in a matrix like way. That means each Attribute
defines
a column which contains all constraints for this certain attribute. The rows
of this matrix define the conditions which have to be fulfilled by the
attributes of a certain Element
.
Constructor Summary | |
---|---|
AttributeConstraintsMatrix()
|
Method Summary | |
---|---|
void |
addFilterConstraint(AttributeConstraint constraint)
Adds the given attribute constraint to the matrix of all attribute constraints. |
void |
bind(Subset2 subset)
Binds this instance to the given Subset2
NOTE: PLEASE DON'T USE! |
void |
clear()
Clears the complete filter matrix. |
java.lang.String[] |
getAttributeIDs()
|
AttributeConstraint[] |
getColumn(java.lang.String attrId)
Returns the column for the attribute which is specified by the given attribute identifier. |
AttributeConstraint[] |
getRow(int index)
Returns the n.th row of the constraints matrix. |
AttributeConstraint[][] |
getRows()
Returns all rows of the attribute constraints matrix |
int |
getRowsCount()
Returns the current row count |
void |
removeAllFilterConstraints(java.lang.String attrId)
Removes all attribute constraints for the attribute which corresponds to the given attribute identifier. |
void |
removeFilterConstraint(AttributeConstraint constraint)
Removes the given attribute constraint from the matrix of all attribute constraints. |
void |
unbind()
Releases this instance from a previously binded Subset2
NOTE: PLEASE DON'T USE! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeConstraintsMatrix()
Method Detail |
---|
public final java.lang.String[] getAttributeIDs()
public final void addFilterConstraint(AttributeConstraint constraint)
constraint
- the attribute constraint to addpublic final void removeFilterConstraint(AttributeConstraint constraint)
constraint
- the attribute constraint to removepublic final void removeAllFilterConstraints(java.lang.String attrId)
attrId
- the identifier of the attribute to remove from the matrixpublic final AttributeConstraint[] getColumn(java.lang.String attrId)
attrID
- the attribute identifier to get the constraints for
public final AttributeConstraint[] getRow(int index)
index
- the index of the row to return
public final AttributeConstraint[][] getRows()
public final int getRowsCount()
public final void clear()
public final void bind(Subset2 subset)
Binds this instance to the given Subset2
subset
- public final void unbind()
Releases this instance from a previously binded Subset2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |