Package com.independentsoft.office.odf
Class SortKey
java.lang.Object
com.independentsoft.office.odf.SortKey
Represents a single sort key if bibliography entries are not displayed in document order.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.getKey()Gets the type for the index entries that should be used for sorting.booleanSpecifies whether locale specific sorting takes pace in ascending or descending order.voidSets the type for the index entries that should be used for sorting.voidsetSortAscending(boolean sortAscending)Specifies whether locale specific sorting takes pace in ascending or descending order.toString()Converts the value of the current SortKey object to its equivalent string representation.
-
Constructor Details
-
SortKey
public SortKey()Initializes a new instance of the SortKey class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current SortKey object to its equivalent string representation. -
getKey
Gets the type for the index entries that should be used for sorting.- Returns:
- the key
-
setKey
Sets the type for the index entries that should be used for sorting.- Parameters:
key- the new key
-
isSortAscending
public boolean isSortAscending()Specifies whether locale specific sorting takes pace in ascending or descending order. The defined values are: -false: sorting takes place in descending order. -true: sorting takes place in ascending order.- Returns:
- true, if is sort ascending
-
setSortAscending
public void setSortAscending(boolean sortAscending)Specifies whether locale specific sorting takes pace in ascending or descending order. The defined values are: -false: sorting takes place in descending order. -true: sorting takes place in ascending order.- Parameters:
sortAscending- the new sort ascending
-