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) voidadd(java.lang.String typeName, boolean isAllFeat, java.lang.String[] languages, boolean replace)add a type (not a type:feat)(package private) voidadd(java.lang.String typeName, boolean isAllFeat, RsLangs rslangs, boolean replace)(package private) voidadd(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) RsLangsaddLanguages(RsLangs existing, java.lang.Object langs, boolean replace)(package private) RsLangsaddLanguages(RsLangs existing, RsLangs rslangs, boolean replace)booleanequals(java.lang.Object obj)(package private) RsFeatget(java.lang.String typeName, java.lang.String shortFeatName)(package private) RsTypegetRsType(java.lang.String typeName)inthashCode()java.util.Iterator<RsType>iterator()(package private) intnbrOfTypes()(package private) voidremove(java.lang.String type)Remove a type, regardless of languages NOTE: doesn't remove type:feature entries associated with that type(package private) voidremove(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:
iteratorin interfacejava.lang.Iterable<RsType>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-