public class Contributor extends HashStructureAdapter implements Copyable
Different types of contributors provides artifacts from different sources. A Contributor can be processed within a particular Context to provide the artifacts relevant for that source. For example, a Project Source Contributor may be processed in the context of a JDeveloper Project to provide the source files in the project.
_hash
Constructor and Description |
---|
Contributor(HashStructure hash) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
copyTo(java.lang.Object target)
Copy support.
|
static Contributor |
create(java.lang.String id)
Creates an instance of a Contributor that can be added to a HashStructure.
|
java.lang.String |
getContributorType() |
HashStructure |
getHashStructure()
Returns the HashStructure this adapter is adapting.
|
static java.lang.String |
getType(HashStructure hash) |
void |
setContributorType(java.lang.String type) |
addStructureChangeListener, containsKey, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEquals
public Contributor(HashStructure hash)
public static Contributor create(java.lang.String id)
id
- Processor
,
LocationContributor
public void setContributorType(java.lang.String type)
public HashStructure getHashStructure()
HashStructureAdapter
getHashStructure
in class HashStructureAdapter
public java.lang.String getContributorType()
public static java.lang.String getType(HashStructure hash)
public java.lang.Object copyTo(java.lang.Object target)
HashStructureAdapter
copyTo
in interface Copyable
copyTo
in class HashStructureAdapter
target
- The target object to which the state of
this
object should be copied. If target
is null
, then the copyTo
method will
return a new instance of this
class.this
object was copied. If the target
was
non-null
, then the return value is the same as the
target
object that was passed in; otherwise, the
return value is a new instance of this
class.