Class RsTypesMap
- java.lang.Object
-
- org.apache.uima.analysis_engine.impl.RsTypesMap
-
-
Constructor Summary
Constructors Constructor Description RsTypesMap()
RsTypesMap(RsTypesMap src)
cloning constructor - clones its arg
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(java.lang.String typeName, boolean isAllFeat, java.lang.String[] languages, boolean replace)
add a type (not a type:feat)(package private) void
add(java.lang.String typeName, boolean isAllFeat, RsLangs rslangs, boolean replace)
(package private) void
add(java.lang.String typeName, java.lang.String shortFeatName, java.lang.Object rslangs, boolean replace)
add a feature (not a plain type) If feature exists, augments (union) its languages or replaces it(package private) RsLangs
addLanguages(RsLangs existing, java.lang.Object langs, boolean replace)
(package private) RsLangs
addLanguages(RsLangs existing, RsLangs rslangs, boolean replace)
boolean
equals(java.lang.Object obj)
(package private) RsFeat
get(java.lang.String typeName, java.lang.String shortFeatName)
(package private) RsType
getRsType(java.lang.String typeName)
int
hashCode()
java.util.Iterator<RsType>
iterator()
(package private) int
nbrOfTypes()
(package private) void
remove(java.lang.String type)
Remove a type, regardless of languages NOTE: doesn't remove type:feature entries associated with that type(package private) void
remove(java.lang.String type, java.lang.String feature)
remove a feature, regardless of languages If all features are removed, null out the rsFeats slot.
-
-
-
Field Detail
-
types
private final java.util.Map<java.lang.String,RsType> types
-
-
Constructor Detail
-
RsTypesMap
RsTypesMap()
-
RsTypesMap
RsTypesMap(RsTypesMap src)
cloning constructor - clones its arg- Parameters:
src
-
-
-
Method Detail
-
add
void add(java.lang.String typeName, boolean isAllFeat, java.lang.String[] languages, boolean replace)
add a type (not a type:feat)- Parameters:
typeName
-isAllFeat
-languages
-replace
-
-
add
void add(java.lang.String typeName, boolean isAllFeat, RsLangs rslangs, boolean replace)
-
add
void add(java.lang.String typeName, java.lang.String shortFeatName, java.lang.Object rslangs, boolean replace)
add a feature (not a plain type) If feature exists, augments (union) its languages or replaces it- Parameters:
typeName
-featName
-languages
-replace
-
-
remove
void remove(java.lang.String type)
Remove a type, regardless of languages NOTE: doesn't remove type:feature entries associated with that type- Parameters:
type
-
-
remove
void remove(java.lang.String type, java.lang.String feature)
remove a feature, regardless of languages If all features are removed, null out the rsFeats slot. If all features are removed, and no type instance, remove the type also.- Parameters:
typeName
-feature
- Short Name
-
getRsType
RsType getRsType(java.lang.String typeName)
-
get
RsFeat get(java.lang.String typeName, java.lang.String shortFeatName)
-
nbrOfTypes
int nbrOfTypes()
-
iterator
public java.util.Iterator<RsType> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<RsType>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-