Examples of LocationInfo


Examples of org.apache.log4j.spi.location.LocationInfo

  /**
   * @param event
   * @return
   */
  private static LocationInfo formatLocationInfo(LoggingEvent event) {
    LocationInfo info = event.getLocationInformation();
    LocationInfo newInfo =
      new LocationInfo(
        escape(info.getFileName()), escape(info.getClassName()),
        escape(info.getMethodName()), escape(info.getLineNumber()));

    return newInfo;
  }
View Full Code Here

Examples of org.apache.log4j.spi.location.LocationInfo

    Hashtable hashTable = new Hashtable();
    hashTable.put("key1", "val1");
    hashTable.put("key2", "val2");
    hashTable.put("key3", "val3");

    LocationInfo li =
      new LocationInfo(
        "myfile.java", "com.mycompany.util.MyClass", "myMethod", "321");

    ThrowableInformation tsr = new ThrowableInformation(new Exception());

    event = new LoggingEvent();
View Full Code Here

Examples of org.codehaus.stax2.LocationInfo

    {
        if (!readerAccessible()) {
            throw _notAccessible("getLocation");
        }
        // Let's try to get actual exact location via Stax2 first:
        LocationInfo li = mStreamReader.getLocationInfo();
        if (li != null) {
            Location loc = li.getStartLocation();
            if (loc != null) {
                return loc;
            }
        }
        // If not, fall back to regular method
View Full Code Here

Examples of org.codehaus.stax2.LocationInfo

     *   to (independent of whether this cursor points to that event)
     */
    public Location getStreamLocation()
    {
        // Let's try to get actual exact location via Stax2 first:
        LocationInfo li = mStreamReader.getLocationInfo();
        if (li != null) {
            Location loc = li.getCurrentLocation();
            if (loc != null) {
                return loc;
            }
        }
        // If not, fall back to regular method
View Full Code Here

Examples of org.jinstagram.entity.locations.LocationInfo

   * @return a LocationInfo object.
   * @throws InstagramException if any error occurs.
   */
  public LocationInfo getLocationInfo(String locationId) throws InstagramException {
    String apiMethod = String.format(Methods.LOCATIONS_BY_ID, locationId);
    LocationInfo feed = createInstagramObject(Verbs.GET, LocationInfo.class, apiMethod, null);

    return feed;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    if (elementMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      // warn: ReportMigrationInspection.ElementInvalid
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.ElementInvalid",
              element.getName(), compatibilityText), new LocationInfo(element)));
    }

    for (final AttributeMetaData attributeMetaData : elementMetaData.getAttributeDescriptions())
    {
      if (attributeMetaData.getCompatibilityLevel() > compatibilityLevel)
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    if (expressionMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.ExpressionInvalid",
              expressionMetaData.getDisplayName(Locale.getDefault()), compatibilityText),
          new LocationInfo(expression)));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    }
    catch (Exception e)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          e.getMessage(),
          new LocationInfo(expression)));
    }

  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    }
    catch (Exception e)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          e.getMessage(),
          new LocationInfo(expression)));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    {
      final Throwable throwable = dataSchemaModel.getDataFactoryException();
      if (throwable != null)
      {
        final DataFactory dataFactory = reportRenderContext.getContextRoot().getDataFactory();
        final LocationInfo queryLocation;
        if (dataFactory instanceof CompoundDataFactory)
        {
          final CompoundDataFactory cdf = (CompoundDataFactory) dataFactory;
          final DataFactory element = cdf.getDataFactoryForQuery(query);
          if (element == null)
          {
            queryLocation = new LocationInfo(dataFactory);
          }
          else
          {
            queryLocation = new LocationInfo(element);
          }
        }
        else
        {
          queryLocation = new LocationInfo(dataFactory);
        }
        resultHandler.notifyInspectionResult
            (new InspectionResult(this, InspectionResult.Severity.ERROR,
                Messages.getString("InvalidQueryNameReferenceInspection.QueryDidNotExecute", query, throwable.toString()),
                queryLocation));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.