Search in sources :

Example 1 with NoSuchCharacteristic

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();
    }
}
Also used : Condition(alma.ACS.Condition) NoSuchCharacteristic(alma.ACS.NoSuchCharacteristic) NO_RESOURCES(org.omg.CORBA.NO_RESOURCES)

Example 2 with NoSuchCharacteristic

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();
    }
}
Also used : NoSuchCharacteristic(alma.ACS.NoSuchCharacteristic) NO_RESOURCES(org.omg.CORBA.NO_RESOURCES)

Example 3 with NoSuchCharacteristic

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();
    }
}
Also used : Condition(alma.ACS.Condition) NoSuchCharacteristic(alma.ACS.NoSuchCharacteristic) NO_RESOURCES(org.omg.CORBA.NO_RESOURCES)

Example 4 with NoSuchCharacteristic

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();
    }
}
Also used : Condition(alma.ACS.Condition) NoSuchCharacteristic(alma.ACS.NoSuchCharacteristic) NO_RESOURCES(org.omg.CORBA.NO_RESOURCES)

Example 5 with NoSuchCharacteristic

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();
}
Also used : NoSuchCharacteristic(alma.ACS.NoSuchCharacteristic) Any(org.omg.CORBA.Any)

Aggregations

NoSuchCharacteristic (alma.ACS.NoSuchCharacteristic)10 NO_RESOURCES (org.omg.CORBA.NO_RESOURCES)6 Condition (alma.ACS.Condition)5 Any (org.omg.CORBA.Any)3 CDBFieldDoesNotExistEx (alma.cdbErrType.CDBFieldDoesNotExistEx)2 WrongCDBDataTypeEx (alma.cdbErrType.WrongCDBDataTypeEx)2 PropertySetImpl (alma.ACS.jbaci.PropertySetImpl)1 NO_IMPLEMENT (org.omg.CORBA.NO_IMPLEMENT)1 ORB (org.omg.CORBA.ORB)1 InvalidName (org.omg.CORBA.ORBPackage.InvalidName)1 SystemException (org.omg.CORBA.SystemException)1 MultipleExceptions (org.omg.CosPropertyService.MultipleExceptions)1 Property (org.omg.CosPropertyService.Property)1 PropertySetPOATie (org.omg.CosPropertyService.PropertySetPOATie)1 POA (org.omg.PortableServer.POA)1 AdapterInactive (org.omg.PortableServer.POAManagerPackage.AdapterInactive)1