Esempio n. 1
0
 @Override
 protected void readAttributes(XMLStreamReader reader, MessageGroup object) {
   object.setName(reader.getAttributeValue(null, MessageGroupValidate.s_nameField));
   object.setDescription(reader.getAttributeValue(null, MessageGroupValidate.s_descField));
   object.setDefaultConstraintExprLang(
       reader.getAttributeValue(null, MessageGroupValidate.s_defConstrField));
   object.setDefaultLocationExprLang(
       reader.getAttributeValue(null, MessageGroupValidate.s_defLocField));
   object.setDefaultRuleExprLang(
       reader.getAttributeValue(null, MessageGroupValidate.s_defRuleField));
 }
Esempio n. 2
0
  @Override
  protected void readSingleChildElement(
      XMLStreamReader reader,
      ParsingInfo parsingInfo,
      RawRoot root,
      Map<String, Object> objectMap,
      MessageGroup object)
      throws XMLStreamException {

    if (s_dictRefReader.canRead(reader)) {
      MdmiDomainDictionaryReference ref =
          s_dictRefReader.readAndBuild(reader, parsingInfo, root, objectMap);
      ref.setMessageGroup(object);
      object.setDomainDictionary(ref);
    } else if (s_modelReader.canRead(reader)) {
      MessageModel model = s_modelReader.readAndBuild(reader, parsingInfo, root, objectMap);
      model.setGroup(object);
      object.addModel(model);
    } else if (s_dataRuleReader.canRead(reader)) {
      DataRule rule = s_dataRuleReader.readAndBuild(reader, parsingInfo, root, objectMap);
      rule.setScope(object);
      object.addDataRule(rule);
    } else if (s_extTypeReader.canRead(reader)) {
      DTExternal type = s_extTypeReader.readAndBuild(reader, parsingInfo, root, objectMap);
      object.addDatatype(type);
      type.setOwner(object);
    } else if (s_choiceTypeReader.canRead(reader)) {
      DTCChoice type = s_choiceTypeReader.readAndBuild(reader, parsingInfo, root, objectMap);
      object.addDatatype(type);
      type.setOwner(object);
    } else if (s_structTypeReader.canRead(reader)) {
      DTCStructured type = s_structTypeReader.readAndBuild(reader, parsingInfo, root, objectMap);
      object.addDatatype(type);
      type.setOwner(object);
    } else if (s_enumTypeReader.canRead(reader)) {
      DTSEnumerated type = s_enumTypeReader.readAndBuild(reader, parsingInfo, root, objectMap);
      object.addDatatype(type);
      type.setOwner(object);
    } else if (s_derivedTypeReader.canRead(reader)) {
      DTSDerived type = s_derivedTypeReader.readAndBuild(reader, parsingInfo, root, objectMap);
      object.addDatatype(type);
      type.setOwner(object);
    } else if (s_primTypeReader.canRead(reader)) {
      DTSPrimitive type = s_primTypeReader.readAndBuild(reader, parsingInfo, root, objectMap);
      object.addDatatype(type);
    }
  }
Esempio n. 3
0
 @Override
 protected String getObjectName(MessageGroup object) {
   return object.getName();
 }