Package org.apache.maven.model
Class Resource
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.PatternSet
org.apache.maven.model.FileSet
org.apache.maven.model.Resource
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking
-
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
boolean
protected boolean
resourceToApiV3
(List<Resource> list) resourceToApiV4
(List<Resource> list) void
setFiltering
(boolean filtering) void
setFiltering
(String filtering) void
setImportedFrom
(InputLocation location) void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setMergeId
(String mergeId) void
setTargetPath
(String targetPath) toString()
Methods inherited from class org.apache.maven.model.FileSet
fileSetToApiV3, fileSetToApiV4, getDirectory, setDirectory
Methods inherited from class org.apache.maven.model.PatternSet
addExclude, addInclude, getExcludes, getIncludes, patternSetToApiV3, patternSetToApiV4, removeExclude, removeInclude, setExcludes, setIncludes
Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Resource
public Resource() -
Resource
-
Resource
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classFileSet
-
equals
-
hashCode
public int hashCode() -
getTargetPath
-
setTargetPath
-
getFiltering
-
setFiltering
-
getMergeId
-
setMergeId
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classFileSet
- Parameters:
key
- The key of the field, must not benull
.- Returns:
- The location of the field in the input source or
null
if unknown.
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Overrides:
setLocation
in classFileSet
- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
getImportedFrom
- Overrides:
getImportedFrom
in classFileSet
-
setImportedFrom
- Overrides:
setImportedFrom
in classFileSet
-
getLocationKeys
- Overrides:
getLocationKeys
in classFileSet
-
replace
-
resourceToApiV4
-
resourceToApiV3
-
isFiltering
public boolean isFiltering() -
setFiltering
public void setFiltering(boolean filtering) -
toString
-