|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public interface SequenceDirectory
Directory of sequences.
This specification declares a multiplicity of One.
An application assembler may provide either no or one implementation of this specification.
Use of class ObjectManager is supported for accessing implementations.
SequenceDirectory object = ObjectManagerFactory.getObjectManager( getClass().getClassLoader() ).getObject( SequenceDirectory.class ); SequenceDirectory object = ObjectManagerFactory.getObjectManager( getClass().getClassLoader() ).getObject( SequenceDirectory.class, "implementation name" );
This specification applies to Singleton scope.
The same singleton object is returned whenever requested.
| Modifier and Type | Method and Description |
|---|---|
Sequence |
addSequence(Sequence sequence)
Adds a sequence to the directory. |
Sequence |
deleteSequence(String name,
long revision)
Removes a sequence from the directory. |
Sequence |
editSequence(String name,
long revision,
Sequence sequence)
Updates a sequence in the directory. |
BigInteger |
getCapacityLimit()
Gets the capacity limit of the directory. |
Sequence |
getSequence(String name)
Gets a sequence for a given name. |
BigInteger |
getSequenceCount()
Gets the total number of sequences stored in the directory. |
Set<Sequence> |
searchSequences(String name)
Searches the directory for sequences matching the given arguments. |
| Method Detail |
|---|
BigInteger getSequenceCount()
throws SequencesSystemException
SequencesSystemException - if getting the total number of sequences fails.
BigInteger getCapacityLimit()
throws SequencesSystemException
SequencesSystemException - if getting the capacity limit fails.
Sequence getSequence(String name)
throws SequencesSystemException
name - The name of the sequence to return.name or null if no sequence matching name exists in the
directory.SequencesSystemException - if getting the sequence fails.
Sequence addSequence(Sequence sequence)
throws SequenceVetoException,
SequenceExistsException,
CapacityLimitException,
SequencesSystemException
sequence - The sequence to add to the directory.SequenceVetoException - if sequence holds illegal values.SequenceExistsException - if a sequence with the same name already exists.CapacityLimitException - if the directory's capacity limit has been reached.SequencesSystemException - if adding the sequence fails.
Sequence editSequence(String name,
long revision,
Sequence sequence)
throws SequenceVetoException,
SequenceNotFoundException,
ConcurrentModificationException,
SequencesSystemException
name - The name of the sequence to update.revision - The revision of the sequence to update.sequence - The data to update the directory with.SequenceVetoException - if sequence holds illegal values.SequenceNotFoundException - if no sequence matching name exists in the directory.ConcurrentModificationException - if the same sequence got concurrently modified in the directory, that is,
revision denotes outdated data.SequencesSystemException - if editing the sequence fails.
Sequence deleteSequence(String name,
long revision)
throws SequenceNotFoundException,
ConcurrentModificationException,
SequencesSystemException
name - The name of the sequence to remove.revision - The revision of the sequence to remove.SequenceNotFoundException - if no sequence matching name exists in the directory.ConcurrentModificationException - if the same sequence got concurrently modified in the directory, that is,
revision denotes outdated data.SequencesSystemException - if deleting the sequence fails.
Set<Sequence> searchSequences(String name)
throws SequencesSystemException
name - Text to select sequences whose name property matches the given text; null to ignore
property name in the search.SequencesSystemException - if searching the directory fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||