@Override protected void readAttributes(XMLStreamReader reader, MdmiBusinessElementRule object) { object.setName(reader.getAttributeValue(null, BusinessElemRuleValidate.s_nameField)); object.setDescription(reader.getAttributeValue(null, BusinessElemRuleValidate.s_descName)); object.setRuleExpressionLanguage( reader.getAttributeValue(null, BusinessElemRuleValidate.s_ruleLangName)); }
@Override protected void readSingleChildElement( XMLStreamReader reader, ParsingInfo parsingInfo, RawRoot root, Map<String, Object> objectMap, MdmiBusinessElementRule object) throws XMLStreamException { // Read rule element if (s_ruleReader.canRead(reader)) { object.setRule(s_ruleReader.readAndBuild(reader, parsingInfo, root, objectMap)); } }
@Override protected String getObjectName(MdmiBusinessElementRule object) { return object.getName(); }