java.lang.Object
org.faktorips.devtools.abstraction.AWrapper<File>
org.faktorips.devtools.abstraction.plainjava.internal.PlainJavaResource
All Implemented Interfaces:
Comparable<org.faktorips.devtools.abstraction.AResource>, org.faktorips.devtools.abstraction.AAbstraction, org.faktorips.devtools.abstraction.AResource
Direct Known Subclasses:
PlainJavaContainer, PlainJavaFile

public abstract class PlainJavaResource extends org.faktorips.devtools.abstraction.AWrapper<File> implements org.faktorips.devtools.abstraction.AResource
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.faktorips.devtools.abstraction.AResource

    org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth, org.faktorips.devtools.abstraction.AResource.AResourceType
  • Field Summary

    Fields inherited from interface org.faktorips.devtools.abstraction.AResource

    COMPARING_BY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copy(Path destination, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    org.faktorips.devtools.abstraction.AMarker
    createMarker(String markerType)
     
    void
    delete(org.eclipse.core.runtime.IProgressMonitor monitor)
     
    void
    deleteMarker(PlainJavaMarker plainJavaMarker)
     
    void
    deleteMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
     
    boolean
     
    Set<org.faktorips.devtools.abstraction.AMarker>
    findMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
     
    long
     
     
    long
     
     
    org.faktorips.devtools.abstraction.AContainer
     
    org.faktorips.devtools.abstraction.AProject
     
     
     
     
    boolean
     
    boolean
     
    boolean
    isSynchronized(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
     
    protected boolean
     
    void
    move(Path destination, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    protected void
    recursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
    Executes the given Consumer for this resource and, according to the given depth, its children.
    protected void
    recursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, org.eclipse.core.runtime.IProgressMonitor monitor, String taskName)
    Executes the given Consumer for this resource and, according to the given depth, its children, notifying the given monitor of progress of the given task.
    protected void
     
    void
    refreshLocal(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    void
    setDerived(boolean isDerived, org.eclipse.core.runtime.IProgressMonitor monitor)
     
    void
    touch(org.eclipse.core.runtime.IProgressMonitor monitor)
     

    Methods inherited from class org.faktorips.devtools.abstraction.AWrapper

    equals, hashCode, toString, unwrap

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.faktorips.devtools.abstraction.AAbstraction

    unwrap

    Methods inherited from interface org.faktorips.devtools.abstraction.AResource

    compareTo, getType
  • Constructor Details

    • PlainJavaResource

      public PlainJavaResource(File wrapped)
  • Method Details

    • isAccessible

      public boolean isAccessible()
      Specified by:
      isAccessible in interface org.faktorips.devtools.abstraction.AResource
    • exists

      public boolean exists()
      Specified by:
      exists in interface org.faktorips.devtools.abstraction.AResource
    • getParent

      public org.faktorips.devtools.abstraction.AContainer getParent()
      Specified by:
      getParent in interface org.faktorips.devtools.abstraction.AResource
    • getName

      public String getName()
      Specified by:
      getName in interface org.faktorips.devtools.abstraction.AResource
    • getLocation

      public Path getLocation()
      Specified by:
      getLocation in interface org.faktorips.devtools.abstraction.AResource
    • getProjectRelativePath

      public Path getProjectRelativePath()
      Specified by:
      getProjectRelativePath in interface org.faktorips.devtools.abstraction.AResource
    • getWorkspaceRelativePath

      public Path getWorkspaceRelativePath()
      Specified by:
      getWorkspaceRelativePath in interface org.faktorips.devtools.abstraction.AResource
    • delete

      public void delete(org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      delete in interface org.faktorips.devtools.abstraction.AResource
    • getModificationStamp

      public long getModificationStamp()
      Specified by:
      getModificationStamp in interface org.faktorips.devtools.abstraction.AResource
    • getLocalTimeStamp

      public long getLocalTimeStamp()
      Specified by:
      getLocalTimeStamp in interface org.faktorips.devtools.abstraction.AResource
    • findMarkers

      public Set<org.faktorips.devtools.abstraction.AMarker> findMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
      Specified by:
      findMarkers in interface org.faktorips.devtools.abstraction.AResource
    • recursive

      protected void recursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
      Executes the given Consumer for this resource and, according to the given depth, its children.
      Parameters:
      depth - is ignored if this resource is not AContainer.
    • recursive

      protected void recursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, @CheckForNull org.eclipse.core.runtime.IProgressMonitor monitor, String taskName)
      Executes the given Consumer for this resource and, according to the given depth, its children, notifying the given monitor of progress of the given task.
      Parameters:
      depth - is ignored if this resource is not AContainer.
      monitor - a progress monitor that is notified about this process. When processing a directory, individual file processing is reported to the monitor to allow fine-grained progress reporting. The monitor may be null when progress does not need to be reported.
      taskName - the name of the task, to be reported to the progress monitor
    • createMarker

      public org.faktorips.devtools.abstraction.AMarker createMarker(String markerType)
      Specified by:
      createMarker in interface org.faktorips.devtools.abstraction.AResource
    • deleteMarkers

      public void deleteMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
      Specified by:
      deleteMarkers in interface org.faktorips.devtools.abstraction.AResource
    • deleteMarker

      public void deleteMarker(PlainJavaMarker plainJavaMarker)
    • isDerived

      public boolean isDerived()
      Specified by:
      isDerived in interface org.faktorips.devtools.abstraction.AResource
    • setDerived

      public void setDerived(boolean isDerived, org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      setDerived in interface org.faktorips.devtools.abstraction.AResource
    • getProject

      public org.faktorips.devtools.abstraction.AProject getProject()
      Specified by:
      getProject in interface org.faktorips.devtools.abstraction.AResource
    • refreshLocal

      public void refreshLocal(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      refreshLocal in interface org.faktorips.devtools.abstraction.AResource
    • refreshInternal

      protected void refreshInternal()
    • getWorkspace

      public PlainJavaWorkspace getWorkspace()
      Specified by:
      getWorkspace in interface org.faktorips.devtools.abstraction.AResource
    • copy

      public void copy(Path destination, org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      copy in interface org.faktorips.devtools.abstraction.AResource
    • move

      public void move(Path destination, org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      move in interface org.faktorips.devtools.abstraction.AResource
    • touch

      public void touch(org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      touch in interface org.faktorips.devtools.abstraction.AResource
    • isSynchronized

      public boolean isSynchronized(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth)
      Specified by:
      isSynchronized in interface org.faktorips.devtools.abstraction.AResource
    • isSynchronizedInternal

      protected boolean isSynchronizedInternal()