de.aitools.ir.retrievalmodels.document
Class FeatureSet

java.lang.Object
  extended by de.aitools.ir.retrievalmodels.document.FeatureSet
All Implemented Interfaces:
java.lang.Iterable<Feature>, java.util.Collection<Feature>, java.util.Set<Feature>
Direct Known Subclasses:
Document

public class FeatureSet
extends java.lang.Object
implements java.util.Set<Feature>


Constructor Summary
FeatureSet()
           
 
Method Summary
 boolean add(Feature f)
           
 boolean addAll(java.util.Collection<? extends Feature> c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 boolean equals(java.lang.Object o)
           
 java.util.Set<Feature> getAll(java.lang.String name)
           
<T> java.util.Set<T>
getAll(java.lang.String name, java.lang.String attribute)
           
<T> java.util.Set<T>
getAllFeatureValues(java.lang.String name)
           
 Feature getOne(java.lang.String name)
           
<T> T
getOne(java.lang.String name, java.lang.String attribute)
           
<T> T
getOneFeatureValue(java.lang.String name)
           
 boolean isEmpty()
           
 java.util.Iterator<Feature> iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 int size()
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 java.lang.String toString()
           
 java.lang.Object updateOneFeatureValue(java.lang.String name, java.lang.Object newValue)
           
 java.lang.Object updateOneOrCreateFeature(java.lang.String name, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
hashCode
 

Constructor Detail

FeatureSet

public FeatureSet()
Method Detail

add

public boolean add(Feature f)
Specified by:
add in interface java.util.Collection<Feature>
Specified by:
add in interface java.util.Set<Feature>

addAll

public boolean addAll(java.util.Collection<? extends Feature> c)
Specified by:
addAll in interface java.util.Collection<Feature>
Specified by:
addAll in interface java.util.Set<Feature>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<Feature>
Specified by:
clear in interface java.util.Set<Feature>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<Feature>
Specified by:
contains in interface java.util.Set<Feature>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<Feature>
Specified by:
containsAll in interface java.util.Set<Feature>

getAll

public java.util.Set<Feature> getAll(java.lang.String name)

getAll

public <T> java.util.Set<T> getAll(java.lang.String name,
                                   java.lang.String attribute)

getAllFeatureValues

public <T> java.util.Set<T> getAllFeatureValues(java.lang.String name)

getOne

public Feature getOne(java.lang.String name)

getOne

public <T> T getOne(java.lang.String name,
                    java.lang.String attribute)

getOneFeatureValue

public <T> T getOneFeatureValue(java.lang.String name)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<Feature>
Specified by:
isEmpty in interface java.util.Set<Feature>

iterator

public java.util.Iterator<Feature> iterator()
Specified by:
iterator in interface java.lang.Iterable<Feature>
Specified by:
iterator in interface java.util.Collection<Feature>
Specified by:
iterator in interface java.util.Set<Feature>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<Feature>
Specified by:
remove in interface java.util.Set<Feature>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<Feature>
Specified by:
removeAll in interface java.util.Set<Feature>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<Feature>
Specified by:
retainAll in interface java.util.Set<Feature>

size

public int size()
Specified by:
size in interface java.util.Collection<Feature>
Specified by:
size in interface java.util.Set<Feature>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<Feature>
Specified by:
toArray in interface java.util.Set<Feature>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface java.util.Collection<Feature>
Specified by:
toArray in interface java.util.Set<Feature>

updateOneFeatureValue

public java.lang.Object updateOneFeatureValue(java.lang.String name,
                                              java.lang.Object newValue)

updateOneOrCreateFeature

public java.lang.Object updateOneOrCreateFeature(java.lang.String name,
                                                 java.lang.Object newValue)

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection<Feature>
Specified by:
equals in interface java.util.Set<Feature>
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object