Class PlainJavaResource
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.faktorips.devtools.abstraction.AMarkercreateMarker(String markerType) voiddelete(org.eclipse.core.runtime.IProgressMonitor monitor) voiddeleteMarker(PlainJavaMarker plainJavaMarker) voiddeleteMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) booleanexists()Set<org.faktorips.devtools.abstraction.AMarker> findMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) longlonggetName()org.faktorips.devtools.abstraction.AContainerorg.faktorips.devtools.abstraction.AProjectbooleanbooleanbooleanisSynchronized(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) protected booleanvoidprotected voidrecursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) Executes the givenConsumerfor this resource and, according to the given depth, its children.protected voidrecursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, org.eclipse.core.runtime.IProgressMonitor monitor, String taskName) Executes the givenConsumerfor this resource and, according to the given depth, its children, notifying the given monitor of progress of the given task.protected voidvoidrefreshLocal(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, org.eclipse.core.runtime.IProgressMonitor monitor) voidsetDerived(boolean isDerived, org.eclipse.core.runtime.IProgressMonitor monitor) voidtouch(org.eclipse.core.runtime.IProgressMonitor monitor) Methods inherited from class org.faktorips.devtools.abstraction.AWrapper
equals, hashCode, toString, unwrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.faktorips.devtools.abstraction.AAbstraction
unwrapMethods inherited from interface org.faktorips.devtools.abstraction.AResource
compareTo, getType
-
Constructor Details
-
PlainJavaResource
-
-
Method Details
-
isAccessible
public boolean isAccessible()- Specified by:
isAccessiblein interfaceorg.faktorips.devtools.abstraction.AResource
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.faktorips.devtools.abstraction.AResource
-
getParent
public org.faktorips.devtools.abstraction.AContainer getParent()- Specified by:
getParentin interfaceorg.faktorips.devtools.abstraction.AResource
-
getName
- Specified by:
getNamein interfaceorg.faktorips.devtools.abstraction.AResource
-
getLocation
- Specified by:
getLocationin interfaceorg.faktorips.devtools.abstraction.AResource
-
getProjectRelativePath
- Specified by:
getProjectRelativePathin interfaceorg.faktorips.devtools.abstraction.AResource
-
getWorkspaceRelativePath
- Specified by:
getWorkspaceRelativePathin interfaceorg.faktorips.devtools.abstraction.AResource
-
delete
public void delete(org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
deletein interfaceorg.faktorips.devtools.abstraction.AResource
-
getModificationStamp
public long getModificationStamp()- Specified by:
getModificationStampin interfaceorg.faktorips.devtools.abstraction.AResource
-
getLocalTimeStamp
public long getLocalTimeStamp()- Specified by:
getLocalTimeStampin interfaceorg.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:
findMarkersin interfaceorg.faktorips.devtools.abstraction.AResource
-
recursive
protected void recursive(Consumer<PlainJavaResource> consumer, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) Executes the givenConsumerfor this resource and, according to the given depth, its children.- Parameters:
depth- is ignored if this resource is notAContainer.
-
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 givenConsumerfor 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 notAContainer.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 benullwhen progress does not need to be reported.taskName- the name of the task, to be reported to the progress monitor
-
createMarker
- Specified by:
createMarkerin interfaceorg.faktorips.devtools.abstraction.AResource
-
deleteMarkers
public void deleteMarkers(String type, boolean includeSubtypes, org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) - Specified by:
deleteMarkersin interfaceorg.faktorips.devtools.abstraction.AResource
-
deleteMarker
-
isDerived
public boolean isDerived()- Specified by:
isDerivedin interfaceorg.faktorips.devtools.abstraction.AResource
-
setDerived
public void setDerived(boolean isDerived, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
setDerivedin interfaceorg.faktorips.devtools.abstraction.AResource
-
getProject
public org.faktorips.devtools.abstraction.AProject getProject()- Specified by:
getProjectin interfaceorg.faktorips.devtools.abstraction.AResource
-
refreshLocal
public void refreshLocal(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
refreshLocalin interfaceorg.faktorips.devtools.abstraction.AResource
-
refreshInternal
protected void refreshInternal() -
getWorkspace
- Specified by:
getWorkspacein interfaceorg.faktorips.devtools.abstraction.AResource
-
copy
- Specified by:
copyin interfaceorg.faktorips.devtools.abstraction.AResource
-
move
- Specified by:
movein interfaceorg.faktorips.devtools.abstraction.AResource
-
touch
public void touch(org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
touchin interfaceorg.faktorips.devtools.abstraction.AResource
-
isSynchronized
public boolean isSynchronized(org.faktorips.devtools.abstraction.AResource.AResourceTreeTraversalDepth depth) - Specified by:
isSynchronizedin interfaceorg.faktorips.devtools.abstraction.AResource
-
isSynchronizedInternal
protected boolean isSynchronizedInternal()
-