Package com.opengamma.bbg.referencedata

Examples of com.opengamma.bbg.referencedata.ReferenceDataError


  @Override
  protected ReferenceDataProviderGetResult doBulkGet(ReferenceDataProviderGetRequest request) {
    ReferenceDataProviderGetResult result = new ReferenceDataProviderGetResult();
    for (String identifier : request.getIdentifiers()) {
      ReferenceData rd = new ReferenceData(identifier);
      rd.addError(new ReferenceDataError(null, -1, null, null, "None found"));
      result.addReferenceData(rd);
    }
    return result;
  }
View Full Code Here


     *
     * @param refData  the per identifier reference data result, not null
     * @param element  the bloomberg element, not null
     */
    protected void parseIdentifierError(ReferenceData refData, Element element) {
      ReferenceDataError error = buildError(null, element);
      refData.addError(error);
    }
View Full Code Here

    protected void parseFieldExceptions(ReferenceData refData, Element fieldExceptionArray) {
      int numExceptions = fieldExceptionArray.numValues();
      for (int i = 0; i < numExceptions; i++) {
        Element exceptionElem = fieldExceptionArray.getValueAsElement(i);
        String fieldId = exceptionElem.getElementAsString(FIELD_ID);
        ReferenceDataError error = buildError(fieldId, exceptionElem.getElement(ERROR_INFO));
        refData.addError(error);
      }
    }
View Full Code Here

     * @param field  the field, null if linked to the identifier rather than a field
     * @param element  the element, not null
     * @return the error, not null
     */
    public ReferenceDataError buildError(String field, Element element) {
      return new ReferenceDataError(field, element.getElementAsInt32("code"), element.getElementAsString("category"),
          element.getElementAsString("subcategory"), element.getElementAsString("message"));
    }
View Full Code Here

TOP

Related Classes of com.opengamma.bbg.referencedata.ReferenceDataError

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.