Package uk.nhs.interoperability.payloads

Examples of uk.nhs.interoperability.payloads.FieldType


  public static void serialiseFieldsInPayload(XMLNamespaceContext namespaces, Payload p, Element parent, Document xmldoc) {
   
    Map<String, Field> fieldDefinitions = p.getFieldDefinitions();
    for (String fieldName : fieldDefinitions.keySet()) {
      Field field = fieldDefinitions.get(fieldName);
      FieldType fieldType = field.getTypeEnum();
      Logger.trace("===== Processing field: " + field.getName() + " - type specified as: " + fieldType.name() + " multiplicity = " + field.getMaxOccurs());

      FieldHandler handler = fieldType.getHandler();
     
      String xpath = field.getXpath();
      String strValue = null;
      Object fieldValue = p.getValue(field.getName());
     
View Full Code Here


      return;
    }
    Map<String, Field> fieldDefinitions = p.getFieldDefinitions();
    for (String fieldName : fieldDefinitions.keySet()) {
      Field field = fieldDefinitions.get(fieldName);
      FieldType fieldType = field.getTypeEnum();
      processField(namespaces, p, parent, xmldoc, name, field);
    }
  }
View Full Code Here

    }
  }

  private static void processField(XMLNamespaceContext namespaces, Payload p, Element parent, Document xmldoc, String name, Field field) {
    String strXpath = field.getXpath();
    FieldType fieldType = field.getTypeEnum();
    FieldHandler handler = fieldType.getHandler();
   
    Logger.trace("=== Attempting to find field: " + field.getName() +
        " which is of type " + field.getTypeName() +
        " and has xpath: " + strXpath +
        " with maxOccurs = " + field.getMaxOccurs() +
View Full Code Here

TOP

Related Classes of uk.nhs.interoperability.payloads.FieldType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.