Package ca.phon.session.impl
Class TierImpl<T>
java.lang.Object
ca.phon.session.impl.TierImpl<T>
- All Implemented Interfaces:
TierDescriptionSPI
,TierSPI<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroup()
Attempts to add a new group to the end of this tier and increments the number of groups.void
addGroup
(int idx) Attempts to add a new group to the end of this tier and increments the number of groups.void
Adds a new group at the specified indexvoid
Adds a new group to the end of this tier and increments the number of groups.Get declared type of the tiergetGroup
(int idx) Get value at given groupgetName()
Get the name of the tier.boolean
Is the tier grouped, if tier is not grouped,Tier.numberOfGroups()
will always return 1.int
Get the number of groups in the tiervoid
Removes all group data from this tier and sets the number of groups to 0removeGroup
(int idx) Remove the specified groupvoid
Set the value of the specified group idx.
-
Method Details
-
numberOfGroups
public int numberOfGroups()Description copied from interface:TierSPI
Get the number of groups in the tier- Specified by:
numberOfGroups
in interfaceTierSPI<T>
- Returns:
- number of groups
-
getGroup
Description copied from interface:TierSPI
Get value at given group -
setGroup
Description copied from interface:TierSPI
Set the value of the specified group idx. idx must be between 0 and numberOfGroups() -
addGroup
public void addGroup()Description copied from interface:TierSPI
Attempts to add a new group to the end of this tier and increments the number of groups. -
addGroup
public void addGroup(int idx) Description copied from interface:TierSPI
Attempts to add a new group to the end of this tier and increments the number of groups. -
addGroup
Description copied from interface:TierSPI
Adds a new group to the end of this tier and increments the number of groups. -
addGroup
Description copied from interface:TierSPI
Adds a new group at the specified index -
removeGroup
Description copied from interface:TierSPI
Remove the specified group- Specified by:
removeGroup
in interfaceTierSPI<T>
-
removeAll
public void removeAll()Description copied from interface:TierSPI
Removes all group data from this tier and sets the number of groups to 0 -
isGrouped
public boolean isGrouped()Description copied from interface:TierDescriptionSPI
Is the tier grouped, if tier is not grouped,Tier.numberOfGroups()
will always return 1.- Specified by:
isGrouped
in interfaceTierDescriptionSPI
- Specified by:
isGrouped
in interfaceTierSPI<T>
- Returns:
true
if the tier is grouped,false
otherwise
-
getName
Description copied from interface:TierDescriptionSPI
Get the name of the tier.- Specified by:
getName
in interfaceTierDescriptionSPI
- Returns:
- name of the tier
-
getDeclaredType
Description copied from interface:TierDescriptionSPI
Get declared type of the tier- Specified by:
getDeclaredType
in interfaceTierDescriptionSPI
-