/** * Utility to read an attribute * This function is called by the CIMModel * * @param class_name * the read name of class * @param attr_name * the read name of attribute * @param value * the read value of the attribute * @param model * the interface to the model this class belongs to * @throws InterpretationException */ @Override public void readAttribute(final String class_name, final String attr_name, final String value, CIMModel model) throws InterpretationException { if (class_name.equals("BusbarSection")) { StringBuilder errorMessage = new StringBuilder("The attribute \""); errorMessage.append(attr_name); errorMessage.append("\" in class \""); errorMessage.append(class_name); errorMessage.append("\" could not be found in the model !"); throw new InterpretationException(errorMessage.toString()); } else { super.readAttribute(class_name, attr_name, value, model); } }
/** * Utility to read an attribute * This function is called by the CIMModel * * @param class_name * the read name of class * @param attr_name * the read name of attribute * @param value * the read value of the attribute * @param model * the interface to the model this class belongs to * @throws InterpretationException */ @Override public void readAttribute(final String class_name, final String attr_name, final String value, CIMModel model) throws InterpretationException { if (class_name.equals("EquivalentEquipment")) { StringBuilder errorMessage = new StringBuilder("The attribute \""); errorMessage.append(attr_name); errorMessage.append("\" in class \""); errorMessage.append(class_name); errorMessage.append("\" could not be found in the model !"); throw new InterpretationException(errorMessage.toString()); } else { super.readAttribute(class_name, attr_name, value, model); } }
/** * Utility to read an attribute * This function is called by the CIMModel * * @param class_name * the read name of class * @param attr_name * the read name of attribute * @param value * the read value of the attribute * @param model * the interface to the model this class belongs to * @throws InterpretationException */ @Override public void readAttribute(final String class_name, final String attr_name, final String value, CIMModel model) throws InterpretationException { if (class_name.equals("RegulatingCondEq")) { StringBuilder errorMessage = new StringBuilder("The attribute \""); errorMessage.append(attr_name); errorMessage.append("\" in class \""); errorMessage.append(class_name); errorMessage.append("\" could not be found in the model !"); throw new InterpretationException(errorMessage.toString()); } else { super.readAttribute(class_name, attr_name, value, model); } }
super.readAttribute(class_name, attr_name, value, model);
super.readAttribute(class_name, attr_name, value, model);
throw new InterpretationException(errorMessage.toString()); } else { super.readAttribute(class_name, attr_name, value, model);
super.readAttribute(class_name, attr_name, value, model);