de.topicmapslab.majortom.index.nonpaged
Class CachedLiteralIndexImpl<X extends de.topicmapslab.majortom.model.store.ITopicMapStore>

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
      extended by de.topicmapslab.majortom.index.core.BaseCachedIndexImpl<X>
          extended by de.topicmapslab.majortom.index.core.BaseCachedLiteralIndexImpl<X>
              extended by de.topicmapslab.majortom.index.nonpaged.CachedLiteralIndexImpl<X>
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.ILiteralIndex, org.tmapi.index.Index, org.tmapi.index.LiteralIndex
Direct Known Subclasses:
InMemoryLiteralIndex, JdbcLiteralIndex

public abstract class CachedLiteralIndexImpl<X extends de.topicmapslab.majortom.model.store.ITopicMapStore>
extends BaseCachedLiteralIndexImpl<X>
implements de.topicmapslab.majortom.model.index.ILiteralIndex

Base implementation of an cached literal index

Author:
Sven Krosse

Constructor Summary
CachedLiteralIndexImpl(X store)
           
 
Method Summary
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetBooleans(boolean value)
          Returns all characteristics with the given value and the datatype xsd:boolean.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Locator datatype)
          Returns all characteristics with the given datatype.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value)
          Returns all characteristics with the given value.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value, org.tmapi.core.Locator datatype)
          Returns all characteristics with the given value and the given datatype.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp)
          Returns all characteristics which has a value matches the given regular expression.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp, org.tmapi.core.Locator datatype)
          Returns all characteristics which has a value matches the given regular expression and has the datatype.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value)
          Returns all characteristics with the given value and the datatype tm:geo.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value, double deviance)
          Returns all characteristics with the datatype xsd:integer and a geographical coordinate which has a lower or equal distance to the given coordinate like the given deviance.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.IDatatypeAware> doGetDatatypeAwares(org.tmapi.core.Locator dataType)
          Returns all variants and occurrences with the given data-type.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value)
          Returns all characteristics with the given value and the datatype xsd:dateTime.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value, java.util.Calendar deviance)
          Returns all characteristics with the datatype xsd:time and with a time value which has a difference from the given value lower or equals than the given deviance.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value)
          Returns all characteristics with the given value and the datatype xsd:double.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value, double deviance)
          Returns all characteristics with the datatype xsd:double and a value contained by the given range [value - deviance, value + deviance].
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value)
          Returns all characteristics with the given value and the datatype xsd:float.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value, double deviance)
          Returns all characteristics with the datatype xsd:float and a value contained by the given range [value - deviance, value + deviance].
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value)
          Returns all characteristics with the given value and the datatype xsd:integer.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value, double deviance)
          Returns all characteristics with the datatype xsd:integer and a value contained by the given range [value - deviance, value + deviance].
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value)
          Returns all characteristics with the given value and the datatype xsd:long.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value, double deviance)
          Returns all characteristics with the datatype xsd:long and a value contained by the given range [value - deviance, value + deviance].
protected abstract  java.util.Collection<org.tmapi.core.Name> doGetNames()
          Return all names contained by the current topic map.
protected abstract  java.util.Collection<org.tmapi.core.Name> doGetNames(java.lang.String literal)
          Return all names contained by the current topic map with a the given literal as value.
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences()
          Return all occurrences contained by the current topic map.
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Locator value)
          Return all occurrences contained by the current topic map with the given value.
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(java.lang.String literal)
          Return all occurrences contained by the current topic map with a the given literal as value.
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(java.lang.String literal, org.tmapi.core.Locator datatype)
          Return all occurrences contained by the current topic map with a the given literal as value and datatype.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetUris(java.net.URI value)
          Returns all characteristics with the given value and the datatype xsd:anyURI.
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants()
          Return all variants contained by the current topic map.
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Locator value)
          Return all variants contained by the current topic map with the given value.
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(java.lang.String literal)
          Return all variants contained by the current topic map with the given literal as value.
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(java.lang.String literal, org.tmapi.core.Locator datatype)
          Return all variants contained by the current topic map with a the given literal as value and datatype.
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getBooleans(boolean value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Locator datatype)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.lang.String value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.lang.String value, org.tmapi.core.Locator datatype)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.util.regex.Pattern regExp)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.util.regex.Pattern regExp, org.tmapi.core.Locator datatype)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.lang.String regExp)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.lang.String regExp, org.tmapi.core.Locator datatype)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value, double deviance)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IDatatypeAware> getDatatypeAwares(org.tmapi.core.Locator dataType)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDateTime(java.util.Calendar value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDateTime(java.util.Calendar value, java.util.Calendar deviance)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDoubles(double value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDoubles(double value, double deviance)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getFloats(float value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getFloats(float value, double deviance)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getIntegers(int value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getIntegers(int value, double deviance)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getLongs(long value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getLongs(long value, double deviance)
          
 java.util.Collection<org.tmapi.core.Name> getNames()
          
 java.util.Collection<org.tmapi.core.Name> getNames(java.lang.String literal)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences()
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Locator value)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.lang.String value)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.lang.String value, org.tmapi.core.Locator datatype)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getUris(java.net.URI value)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants()
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Locator value)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(java.lang.String value)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(java.lang.String value, org.tmapi.core.Locator datatype)
          
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedLiteralIndexImpl
cache, cache, cacheConstructs, cacheConstructs, cacheConstructs, cacheConstructs, clear, clearCache, close, open, read, read, readConstructs, readConstructs, readConstructs, readConstructs, topicMapChanged
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedIndexImpl
isCachingEnabled, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext
 
Methods inherited from class de.topicmapslab.majortom.index.IndexImpl
getTopicMapStore, isAutoUpdated, isOpen, reindex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.index.IIndex
clear
 
Methods inherited from interface org.tmapi.index.Index
close, isAutoUpdated, isOpen, open, reindex
 

Constructor Detail

CachedLiteralIndexImpl

public CachedLiteralIndexImpl(X store)
Parameters:
store -
Method Detail

getBooleans

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getBooleans(boolean value)

Specified by:
getBooleans in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.lang.String value)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Locator datatype)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.lang.String value,
                                                                                                     org.tmapi.core.Locator datatype)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristicsMatches

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.lang.String regExp)

Specified by:
getCharacteristicsMatches in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristicsMatches

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.lang.String regExp,
                                                                                                            org.tmapi.core.Locator datatype)

Specified by:
getCharacteristicsMatches in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristicsMatches

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.util.regex.Pattern regExp)

Specified by:
getCharacteristicsMatches in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCharacteristicsMatches

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsMatches(java.util.regex.Pattern regExp,
                                                                                                            org.tmapi.core.Locator datatype)

Specified by:
getCharacteristicsMatches in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCoordinates

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value)

Specified by:
getCoordinates in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getCoordinates

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value,
                                                                                                 double deviance)

Specified by:
getCoordinates in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getDatatypeAwares

public java.util.Collection<de.topicmapslab.majortom.model.core.IDatatypeAware> getDatatypeAwares(org.tmapi.core.Locator dataType)

Specified by:
getDatatypeAwares in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getDateTime

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDateTime(java.util.Calendar value)

Specified by:
getDateTime in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getDateTime

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDateTime(java.util.Calendar value,
                                                                                              java.util.Calendar deviance)

Specified by:
getDateTime in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getDoubles

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDoubles(double value)

Specified by:
getDoubles in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getDoubles

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getDoubles(double value,
                                                                                             double deviance)

Specified by:
getDoubles in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getFloats

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getFloats(float value)

Specified by:
getFloats in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getFloats

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getFloats(float value,
                                                                                            double deviance)

Specified by:
getFloats in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getIntegers

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getIntegers(int value)

Specified by:
getIntegers in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getIntegers

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getIntegers(int value,
                                                                                              double deviance)

Specified by:
getIntegers in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getLongs

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getLongs(long value)

Specified by:
getLongs in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getLongs

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getLongs(long value,
                                                                                           double deviance)

Specified by:
getLongs in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames()

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(java.lang.String literal)

Specified by:
getNames in interface org.tmapi.index.LiteralIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences()

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.lang.String value)

Specified by:
getOccurrences in interface org.tmapi.index.LiteralIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.lang.String value,
                                                                      org.tmapi.core.Locator datatype)

Specified by:
getOccurrences in interface org.tmapi.index.LiteralIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Locator value)

Specified by:
getOccurrences in interface org.tmapi.index.LiteralIndex

getUris

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getUris(java.net.URI value)

Specified by:
getUris in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants()

Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.ILiteralIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Locator value)

Specified by:
getVariants in interface org.tmapi.index.LiteralIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(java.lang.String value)

Specified by:
getVariants in interface org.tmapi.index.LiteralIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(java.lang.String value,
                                                                org.tmapi.core.Locator datatype)

Specified by:
getVariants in interface org.tmapi.index.LiteralIndex

doGetCharacteristics

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value)
Returns all characteristics with the given value.

Parameters:
value - the value of the characteristics
Returns:
the characteristics

doGetCharacteristics

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Locator datatype)
Returns all characteristics with the given datatype.

Parameters:
datatype - the datatype
Returns:
the characteristics

doGetCharacteristics

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value,
                                                                                                                   org.tmapi.core.Locator datatype)
Returns all characteristics with the given value and the given datatype.

Parameters:
value - the value of the characteristics
datatype - the datatype
Returns:
the characteristics

doGetCharacteristicsMatches

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp)
Returns all characteristics which has a value matches the given regular expression.

Parameters:
regExp - the regular expression
Returns:
the characteristics with matching values

doGetCharacteristicsMatches

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp,
                                                                                                                          org.tmapi.core.Locator datatype)
Returns all characteristics which has a value matches the given regular expression and has the datatype.

Parameters:
regExp - the regular expression
datatype - the datatype
Returns:
the characteristics with matching values

doGetUris

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetUris(java.net.URI value)
Returns all characteristics with the given value and the datatype xsd:anyURI.

Parameters:
value - the value
Returns:
the characteristics with the URI value

doGetIntegers

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value)
Returns all characteristics with the given value and the datatype xsd:integer.

Parameters:
value - the value
Returns:
the characteristics with the integer value

doGetIntegers

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value,
                                                                                                            double deviance)
Returns all characteristics with the datatype xsd:integer and a value contained by the given range [value - deviance, value + deviance].

Parameters:
value - the value
deviance - the maximum difference
Returns:
the characteristics

doGetLongs

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value)
Returns all characteristics with the given value and the datatype xsd:long.

Parameters:
value - the value
Returns:
the characteristics with the long value

doGetLongs

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value,
                                                                                                         double deviance)
Returns all characteristics with the datatype xsd:long and a value contained by the given range [value - deviance, value + deviance].

Parameters:
value - the value
deviance - the maximum difference
Returns:
the characteristics

doGetFloats

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value)
Returns all characteristics with the given value and the datatype xsd:float.

Parameters:
value - the value
Returns:
the characteristics with the float value

doGetFloats

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value,
                                                                                                          double deviance)
Returns all characteristics with the datatype xsd:float and a value contained by the given range [value - deviance, value + deviance].

Parameters:
value - the value
deviance - the maximum difference
Returns:
the characteristics

doGetDoubles

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value)
Returns all characteristics with the given value and the datatype xsd:double.

Parameters:
value - the value
Returns:
the characteristics with the double value

doGetDoubles

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value,
                                                                                                           double deviance)
Returns all characteristics with the datatype xsd:double and a value contained by the given range [value - deviance, value + deviance].

Parameters:
value - the value
deviance - the maximum difference
Returns:
the characteristics

doGetDateTime

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value)
Returns all characteristics with the given value and the datatype xsd:dateTime.

Parameters:
value - the value
Returns:
the characteristics with the dateTime value

doGetDateTime

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value,
                                                                                                            java.util.Calendar deviance)
Returns all characteristics with the datatype xsd:time and with a time value which has a difference from the given value lower or equals than the given deviance. The given deviance calendar will be interpreted as maximum difference from the given value. Each time information handled as difference. For example if the difference should be lower than one day, one hour and 10 minutes the dateTime literal should be 0000-00-01T01:10:00.

Parameters:
value - the value
deviance - the maximum difference
Returns:
the characteristics with the time value

doGetBooleans

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetBooleans(boolean value)
Returns all characteristics with the given value and the datatype xsd:boolean.

Parameters:
value - the value
Returns:
the characteristics with the boolean value

doGetCoordinates

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value)
Returns all characteristics with the given value and the datatype tm:geo.

Parameters:
value - the value
Returns:
the characteristics with the geographic coordinates

doGetCoordinates

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value,
                                                                                                               double deviance)
Returns all characteristics with the datatype xsd:integer and a geographical coordinate which has a lower or equal distance to the given coordinate like the given deviance.

Parameters:
value - the value
deviance - the maximum distance
Returns:
the characteristics

doGetDatatypeAwares

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.IDatatypeAware> doGetDatatypeAwares(org.tmapi.core.Locator dataType)
Returns all variants and occurrences with the given data-type.

Parameters:
dataType - the data type
Returns:
a collection of all matching variants and occurrences within the given range

doGetNames

protected abstract java.util.Collection<org.tmapi.core.Name> doGetNames()
Return all names contained by the current topic map.

Returns:
all names of the topic map

doGetNames

protected abstract java.util.Collection<org.tmapi.core.Name> doGetNames(java.lang.String literal)
Return all names contained by the current topic map with a the given literal as value.

Parameters:
literal - the literal
Returns:
all names of the topic map with the given literal as value

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences()
Return all occurrences contained by the current topic map.

Returns:
all occurrences of the topic map

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(java.lang.String literal)
Return all occurrences contained by the current topic map with a the given literal as value.

Parameters:
literal - the literal
Returns:
all occurrences of the topic map with the given literal as value

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(java.lang.String literal,
                                                                                    org.tmapi.core.Locator datatype)
Return all occurrences contained by the current topic map with a the given literal as value and datatype.

Parameters:
literal - the literal
datatype - the datatype
Returns:
all occurrences of the topic map with the given literal as value and datatype

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Locator value)
Return all occurrences contained by the current topic map with the given value.

Parameters:
value - the value
Returns:
all occurrences of the topic map with the given value

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants()
Return all variants contained by the current topic map.

Returns:
all variants of the topic map

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(java.lang.String literal,
                                                                              org.tmapi.core.Locator datatype)
Return all variants contained by the current topic map with a the given literal as value and datatype.

Parameters:
literal - the literal
datatype - the datatype
Returns:
all variants of the topic map with the given literal as value and datatype

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Locator value)
Return all variants contained by the current topic map with the given value.

Parameters:
value - the value
Returns:
all variants of the topic map with the given value

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(java.lang.String literal)
Return all variants contained by the current topic map with the given literal as value.

Parameters:
literal - the literal
Returns:
all variants of the topic map with the given literal as value