public interface Branch extends OsidObject, Operable
A Branch
is a new version chain from an existing version
chain.
Modifier and Type | Method and Description |
---|---|
BranchRecord |
getBranchRecord(Type branchRecordType)
Gets the branch record corresponding to the given
Pollstem
record Type. |
JournalEntry |
getLatestJournalEntry()
Gets the latest journal entry in this branch.
|
Id |
getLatestJournalEntryId()
Gets the latest journal entry
Id in this branch. |
JournalEntry |
getOriginJournalEntry()
Gets the journal entry from which this branch was started.
|
Id |
getOriginJournalEntryId()
Gets the journal entry
Id from which this branch was
started. |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
Id getOriginJournalEntryId()
Id
from which this branch was
started. Id
mandatory
- This method must be implemented. JournalEntry getOriginJournalEntry() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getLatestJournalEntryId()
Id
in this branch. Id
mandatory
- This method must be implemented. JournalEntry getLatestJournalEntry() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. BranchRecord getBranchRecord(Type branchRecordType) throws OperationFailedException
Pollstem
record Type.
This method is used to retrieve an
object implementing the requested record. The branchRecordType
may be the Type
returned in
getRecordTypes()
or any of its parents in a Type
hierarchy where hasRecordType(branchRecordType)
is true
.branchRecordType
- the branch record typeNullArgumentException
- branchRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(branchRecordType)
is false
mandatory
- This method must be implemented.