- java.lang.Object
-
- org.tentackle.model.impl.IndexAttributeImpl
-
- All Implemented Interfaces:
IndexAttribute
public class IndexAttributeImpl extends java.lang.Object implements IndexAttribute
Index part.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description IndexAttributeImpl(Index index)Creates an index attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributegetAttribute()Gets the attribute.IndexgetIndex()Gets the index this attribute belongs to.booleanisDescending()Returns whether the attribute is descending.voidsetAttribute(Attribute attribute)voidsetDescending(boolean descending)
-
-
-
Constructor Detail
-
IndexAttributeImpl
public IndexAttributeImpl(Index index)
Creates an index attribute.- Parameters:
index- the index
-
-
Method Detail
-
getIndex
public Index getIndex()
Gets the index this attribute belongs to.- Returns:
- the index
-
getAttribute
public Attribute getAttribute()
Description copied from interface:IndexAttributeGets the attribute.- Specified by:
getAttributein interfaceIndexAttribute- Returns:
- the attribute
-
isDescending
public boolean isDescending()
Description copied from interface:IndexAttributeReturns whether the attribute is descending.- Specified by:
isDescendingin interfaceIndexAttribute- Returns:
- true if descending, else ascending (default)
-
setAttribute
public void setAttribute(Attribute attribute)
-
setDescending
public void setDescending(boolean descending)
-
-