use of alma.ACS.NoSuchCharacteristic in project ACS by ACS-Community.
the class CommonROEnumPropertyImpl method condition.
/* (non-Javadoc)
*/
public Condition[] condition() {
try {
int[] temp = characteristicModelImpl.getIntegerSeq("condition");
Condition[] ret = new Condition[temp.length];
for (int i = 0; i < temp.length; i++) ret[i] = Condition.from_int(temp[i]);
return ret;
} catch (NoSuchCharacteristic e) {
throw new NO_RESOURCES();
}
}
use of alma.ACS.NoSuchCharacteristic in project ACS by ACS-Community.
the class CommonROEnumPropertyImpl method getEnumArrayFromCharacteristicModel.
/* (non-Javadoc)
*/
private Object getEnumArrayFromCharacteristicModel(String name) {
try {
int[] temp = characteristicModelImpl.getIntegerSeq(name);
Object ret = Array.newInstance(propertyType, temp.length);
for (int i = 0; i < temp.length; i++) Array.set(ret, i, from_int(temp[i]));
return ret;
} catch (NoSuchCharacteristic e) {
throw new NO_RESOURCES();
}
}
use of alma.ACS.NoSuchCharacteristic in project ACS by ACS-Community.
the class ROpatternImpl method whenSet.
/**
* @see alma.ACS.PpatternOperations#whenSet()
*/
public Condition[] whenSet() {
try {
int[] values = characteristicModelImpl.getIntegerSeq("whenSet");
Condition[] conditions = new Condition[values.length];
for (int i = 0; i < conditions.length; i++) conditions[i] = Condition.from_int(values[i]);
return conditions;
} catch (NoSuchCharacteristic ncs) {
throw new NO_RESOURCES();
}
}
use of alma.ACS.NoSuchCharacteristic in project ACS by ACS-Community.
the class RWpatternImpl method whenCleared.
/**
* @see alma.ACS.PpatternOperations#whenCleared()
*/
public Condition[] whenCleared() {
try {
int[] values = characteristicModelImpl.getIntegerSeq("whenCleared");
Condition[] conditions = new Condition[values.length];
for (int i = 0; i < conditions.length; i++) conditions[i] = Condition.from_int(values[i]);
return conditions;
} catch (NoSuchCharacteristic ncs) {
throw new NO_RESOURCES();
}
}
use of alma.ACS.NoSuchCharacteristic in project ACS by ACS-Community.
the class CharacteristicComponentImpl method get_characteristic_by_name.
/*********************** [ CharacteristicModel ] ***********************/
/**
* @see alma.ACS.CharacteristicModelOperations#get_characteristic_by_name(java.lang.String)
*/
public Any get_characteristic_by_name(String name) throws NoSuchCharacteristic {
//for create the Any
characteristicModelImpl.lendContainerServices(m_containerServices);
Any ret = characteristicModelImpl.get_characteristic_by_name(name);
if (ret != null)
return characteristicModelImpl.get_characteristic_by_name(name);
else
throw new NoSuchCharacteristic();
}
Aggregations