xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "http://iec.ch/TC57/2009/CIM-schema-cim14#OperationalLimitDirectionKind." + getDirection());
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherOperationalLimitType * the instance to copy */ public void copyBase(final OperationalLimitType otherOperationalLimitType) { // assigning enum type : OperationalLimitDirectionKind newdirection; if (otherOperationalLimitType.currentBitset.get(1)) { newdirection = otherOperationalLimitType.getDirection(); this.setDirection(newdirection); } float newacceptableDuration; // assigning primitive type : if (otherOperationalLimitType.currentBitset.get(2)) { newacceptableDuration = otherOperationalLimitType.getAcceptableDuration(); this.setAcceptableDuration(newacceptableDuration); } // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. // TODO : Call the parent copy constructor instead ? super.copyBase(otherOperationalLimitType); }
break; case "TATL": if (olt.getDirection() != cim1.model.OperationalLimitDirectionKind.absoluteValue) { throw new CIM1Exception("Direction not supported " + olt.getDirection());