Class IdentifierRelation
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.IdentifierRelation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UntypedData>,java.lang.Iterable<Identifier>,java.util.Collection<Identifier>,java.util.Set<Identifier>,java.util.SortedSet<Identifier>
public class IdentifierRelation extends UntypedData implements java.util.SortedSet<Identifier>
Collection of untyped relations to otherMetaDataobjects.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
ALL_RIGHTS_RESERVED, EMPTY, string
-
-
Constructor Summary
Constructors Constructor Description IdentifierRelation()Construct an IdentifierRelation with an empty list of relations.
-
Method Summary
Modifier and Type Method Description booleanadd(Identifier identifier)Add aIdentifierto thisIdentifierRelationset.booleanaddAll(java.util.Collection<? extends Identifier> collection)Identifierceiling(Identifier identifier)voidclear()Clear theIdentifierRelationSet.java.lang.Objectclone()java.util.Comparator<? super Identifier>comparator()intcompareTo(UntypedData datatype)booleancontains(java.lang.Object object)Check if an theObjectis in theIdentifierRelationset.booleancontainsAll(java.util.Collection<?> c)Check if an theCollectionis in theIdentifierRelationset.java.util.Iterator<Identifier>descendingIterator()java.util.NavigableSet<Identifier>descendingSet()booleanequals(java.lang.Object o)Identifierfirst()Identifierfloor(Identifier identifier)java.util.Collection<Identifier>getRelations()Getter for the field_relations.inthashCode()java.util.SortedSet<Identifier>headSet(Identifier toElement)java.util.NavigableSet<Identifier>headSet(Identifier toElement, boolean inclusive)Identifierhigher(Identifier identifier)booleanisEmpty()Check if theCollectionofIdentifierRelationis empty.java.util.Iterator<Identifier>iterator()Iterator for theCollectionofIdentifierRelation.Identifierlast()Identifierlower(Identifier identifier)IdentifierpollFirst()IdentifierpollLast()booleanremove(java.lang.Object o)Remove theObjectfrom theIdentifierRelationset.booleanremoveAll(java.util.Collection<?> c)Remove theCollectionfrom theIdentifierRelationset.booleanretainAll(java.util.Collection<?> c)Retains only the object in theCollectionin theIdentifierRelationset.voidsetRelations(java.util.TreeSet<Identifier> relations)Setter for the field_relations.intsize()Get the size of theIdentifierRelationCollection.java.util.NavigableSet<Identifier>subSet(Identifier fromElement, boolean fromInclusive, Identifier toElement, boolean toInclusive)java.util.SortedSet<Identifier>subSet(Identifier fromElement, Identifier toElement)java.util.SortedSet<Identifier>tailSet(Identifier fromElement)java.util.NavigableSet<Identifier>tailSet(Identifier fromElement, boolean inclusive)java.lang.Object[]toArray()Convert theCollectionto an array ofObjects.<T> T[]toArray(T[] a)Convert theCollectionto an array of T objects.java.lang.StringtoString()-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Method Detail
-
add
public boolean add(Identifier identifier)
Add aIdentifierto thisIdentifierRelationset.- Specified by:
addin interfacejava.util.Collection<Identifier>- Specified by:
addin interfacejava.util.Set<Identifier>- Parameters:
identifier- the identifier to add- Returns:
trueif successful;falseotherwise.- See Also:
Collection.add(java.lang.Object)
-
addAll
public boolean addAll(java.util.Collection<? extends Identifier> collection)
- Specified by:
addAllin interfacejava.util.Collection<Identifier>- Specified by:
addAllin interfacejava.util.Set<Identifier>- Parameters:
collection- the collection of identifiers to add- Returns:
trueif successful;falseotherwise.- See Also:
Collection.addAll(java.util.Collection)
-
ceiling
public Identifier ceiling(Identifier identifier)
- Parameters:
identifier- to identifier to match- Returns:
Identifier- See Also:
TreeSet.ceiling(java.lang.Object)
-
clear
public void clear()
Clear theIdentifierRelationSet.- Specified by:
clearin interfacejava.util.Collection<Identifier>- Specified by:
clearin interfacejava.util.Set<Identifier>- See Also:
Collection.clear()
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object- Returns:
Object- See Also:
TreeSet.clone()
-
comparator
public java.util.Comparator<? super Identifier> comparator()
- Specified by:
comparatorin interfacejava.util.SortedSet<Identifier>- Returns:
ComparatorofIdentifier- See Also:
TreeSet.comparator()
-
compareTo
public int compareTo(UntypedData datatype)
- Specified by:
compareToin interfacejava.lang.Comparable<UntypedData>- Overrides:
compareToin classUntypedData
-
contains
public boolean contains(java.lang.Object object)
Check if an theObjectis in theIdentifierRelationset.- Specified by:
containsin interfacejava.util.Collection<Identifier>- Specified by:
containsin interfacejava.util.Set<Identifier>- Parameters:
object- to object to check- Returns:
trueif the theSetcontains the object;falseotherwise.- See Also:
Collection.contains(java.lang.Object)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
Check if an theCollectionis in theIdentifierRelationset.- Specified by:
containsAllin interfacejava.util.Collection<Identifier>- Specified by:
containsAllin interfacejava.util.Set<Identifier>- Returns:
trueif the theSetcontains theCollection;falseotherwise.
-
descendingIterator
public java.util.Iterator<Identifier> descendingIterator()
- Returns:
IteratorofIdentifier- See Also:
TreeSet.descendingIterator()
-
descendingSet
public java.util.NavigableSet<Identifier> descendingSet()
- Returns:
NavigableSetofIdentifier- See Also:
TreeSet.descendingSet()
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.util.Collection<Identifier>- Specified by:
equalsin interfacejava.util.Set<Identifier>- Overrides:
equalsin classUntypedData
-
first
public Identifier first()
- Specified by:
firstin interfacejava.util.SortedSet<Identifier>- Returns:
- first
Identifier - See Also:
TreeSet.first()
-
floor
public Identifier floor(Identifier identifier)
- Parameters:
identifier- the identifier to match- Returns:
Identifier- See Also:
TreeSet.floor(java.lang.Object)
-
getRelations
public java.util.Collection<Identifier> getRelations()
Getter for the field_relations.- Returns:
- the _relations
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection<Identifier>- Specified by:
hashCodein interfacejava.util.Set<Identifier>- Overrides:
hashCodein classUntypedData
-
headSet
public java.util.SortedSet<Identifier> headSet(Identifier toElement)
- Specified by:
headSetin interfacejava.util.SortedSet<Identifier>- Parameters:
toElement- the identifier to match- Returns:
SortedSetofIdentifier- See Also:
TreeSet.headSet(java.lang.Object)
-
headSet
public java.util.NavigableSet<Identifier> headSet(Identifier toElement, boolean inclusive)
- Parameters:
toElement- the identifier to matchinclusive- if inclusive or not- Returns:
NavigableSetofIdentifier- See Also:
TreeSet.headSet(java.lang.Object, boolean)
-
higher
public Identifier higher(Identifier identifier)
- Parameters:
identifier- the identifier to match- Returns:
Identifier- See Also:
TreeSet.higher(java.lang.Object)
-
isEmpty
public boolean isEmpty()
Check if theCollectionofIdentifierRelationis empty.- Specified by:
isEmptyin interfacejava.util.Collection<Identifier>- Specified by:
isEmptyin interfacejava.util.Set<Identifier>- Returns:
trueifCollectionis empty;falseotherwise.- See Also:
Collection.isEmpty()
-
iterator
public java.util.Iterator<Identifier> iterator()
Iterator for theCollectionofIdentifierRelation.- Specified by:
iteratorin interfacejava.util.Collection<Identifier>- Specified by:
iteratorin interfacejava.lang.Iterable<Identifier>- Specified by:
iteratorin interfacejava.util.Set<Identifier>- Returns:
- the
Iterator - See Also:
Collection.iterator()
-
last
public Identifier last()
- Specified by:
lastin interfacejava.util.SortedSet<Identifier>- Returns:
- last
Identifier - See Also:
TreeSet.last()
-
lower
public Identifier lower(Identifier identifier)
- Parameters:
identifier- the identifier to match- Returns:
Identifier- See Also:
TreeSet.lower(java.lang.Object)
-
pollFirst
public Identifier pollFirst()
- Returns:
Identifier- See Also:
TreeSet.pollFirst()
-
pollLast
public Identifier pollLast()
- Returns:
Identifier- See Also:
TreeSet.pollLast()
-
remove
public boolean remove(java.lang.Object o)
Remove theObjectfrom theIdentifierRelationset.- Specified by:
removein interfacejava.util.Collection<Identifier>- Specified by:
removein interfacejava.util.Set<Identifier>- Returns:
trueif successful;falseotherwise.
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
Remove theCollectionfrom theIdentifierRelationset.- Specified by:
removeAllin interfacejava.util.Collection<Identifier>- Specified by:
removeAllin interfacejava.util.Set<Identifier>- Returns:
trueif successful;falseotherwise.
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
Retains only the object in theCollectionin theIdentifierRelationset. Removes all otherObjects from theIdentifierRelationset.- Specified by:
retainAllin interfacejava.util.Collection<Identifier>- Specified by:
retainAllin interfacejava.util.Set<Identifier>- Returns:
trueif successful;falseotherwise.
-
setRelations
public void setRelations(java.util.TreeSet<Identifier> relations)
Setter for the field_relations.- Parameters:
relations- the _relations to set
-
size
public int size()
Get the size of theIdentifierRelationCollection.- Specified by:
sizein interfacejava.util.Collection<Identifier>- Specified by:
sizein interfacejava.util.Set<Identifier>- Returns:
- size the size of the relation collection
- See Also:
Set.size()
-
subSet
public java.util.NavigableSet<Identifier> subSet(Identifier fromElement, boolean fromInclusive, Identifier toElement, boolean toInclusive)
- Parameters:
fromElement- the 'from' identifier to matchfromInclusive- if inclusive or nottoElement- the 'to' identifier to matchtoInclusive- if inclusive or not- Returns:
NavigableSetofIdentifier- See Also:
TreeSet.subSet(java.lang.Object, boolean, java.lang.Object, boolean)
-
subSet
public java.util.SortedSet<Identifier> subSet(Identifier fromElement, Identifier toElement)
- Specified by:
subSetin interfacejava.util.SortedSet<Identifier>- Parameters:
fromElement- the 'from' identifier to matchtoElement- the 'to' identifier to match- Returns:
SortedSetofIdentifier- See Also:
TreeSet.subSet(java.lang.Object, java.lang.Object)
-
tailSet
public java.util.SortedSet<Identifier> tailSet(Identifier fromElement)
- Specified by:
tailSetin interfacejava.util.SortedSet<Identifier>- Parameters:
fromElement- the 'from' identifier to match- Returns:
SortedSetofIdentifier- See Also:
TreeSet.tailSet(java.lang.Object)
-
tailSet
public java.util.NavigableSet<Identifier> tailSet(Identifier fromElement, boolean inclusive)
- Parameters:
fromElement- the 'from' identifier to matchinclusive- if inclusive or not- Returns:
NavigableSetofIdentifier- See Also:
TreeSet.tailSet(java.lang.Object, boolean)
-
toArray
public java.lang.Object[] toArray()
Convert theCollectionto an array ofObjects.- Specified by:
toArrayin interfacejava.util.Collection<Identifier>- Specified by:
toArrayin interfacejava.util.Set<Identifier>- Returns:
- Object[]
- See Also:
Set.toArray()
-
toArray
public <T> T[] toArray(T[] a)
Convert theCollectionto an array of T objects.- Specified by:
toArrayin interfacejava.util.Collection<Identifier>- Specified by:
toArrayin interfacejava.util.Set<Identifier>- Type Parameters:
T- a T object.- Parameters:
a- an array of T objects.- Returns:
- T[]
-
toString
public java.lang.String toString()
Description copied from class:UntypedData- Overrides:
toStringin classUntypedData
-
-