throw new NullPointerException("CAS");
}
// Get the fsvars index.
this.index = this.cas.getIndexRepository().getIndex(FsVariables.INDEX_NAME);
if (this.index == null) {
throw new FsVariablesException(messageCatalog,
FsVariablesException.fsvars_index_doesnt_exist, new Object[] { FsVariables.INDEX_NAME });
}
// Get the fsvars type.
this.fsVariableType = this.cas.getTypeSystem().getType(FsVariables.TYPE_NAME);
if (this.fsVariableType == null) {
throw new FsVariablesException(messageCatalog,
FsVariablesException.fsvars_type_doesnt_exist, new Object[] { FsVariables.TYPE_NAME });
}
// Get the name, type, and value features.
this.nameFeature = this.fsVariableType.getFeatureByBaseName(FsVariables.NAME_FEATURE_NAME);
if (this.nameFeature == null) {
throw new FsVariablesException(messageCatalog,
FsVariablesException.fsvars_feature_doesnt_exist,
new Object[] { FsVariables.NAME_FEATURE_NAME });
}
this.typeFeature = this.fsVariableType.getFeatureByBaseName(FsVariables.TYPE_FEATURE_NAME);
if (this.typeFeature == null) {
throw new FsVariablesException(messageCatalog,
FsVariablesException.fsvars_feature_doesnt_exist,
new Object[] { FsVariables.TYPE_FEATURE_NAME });
}
this.valueFeature = this.fsVariableType.getFeatureByBaseName(FsVariables.VALUE_FEATURE_NAME);
if (this.valueFeature == null) {
throw new FsVariablesException(messageCatalog,
FsVariablesException.fsvars_feature_doesnt_exist,
new Object[] { FsVariables.VALUE_FEATURE_NAME });
}
}