|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.merge.DescriptorMergerByTag
public class DescriptorMergerByTag
Merge a descriptor by tag.
Field Summary | |
---|---|
static MergeStrategy |
IGNORE
A default merge strategy for ignoring items. |
static MergeStrategy |
OVERWRITE
A default merge strategy for overwriting items. |
static MergeStrategy |
PRESERVE
A default merge strategy for preserving items. |
Constructor Summary | |
---|---|
DescriptorMergerByTag()
Constructor. |
Method Summary | |
---|---|
MergeStrategy |
getDefaultStrategyIfNoneSpecified()
|
DescriptorType |
getDescriptorType()
|
protected MergeStrategy |
getMergeStrategy(java.lang.String tag)
|
void |
init(Descriptor base)
Initialize. |
void |
merge(Descriptor other)
Merge this descriptor onto another. |
void |
setDefaultStrategyIfNoneSpecified(MergeStrategy defaultStrategyIfNoneSpecified)
|
void |
setDescriptorType(DescriptorType descriptorTagFactory)
|
void |
setStrategy(java.lang.String tag,
MergeStrategy strategy)
Set the merging strategy for a particular tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MergeStrategy IGNORE
public static final MergeStrategy OVERWRITE
public static final MergeStrategy PRESERVE
Constructor Detail |
---|
public DescriptorMergerByTag()
Method Detail |
---|
public void setStrategy(java.lang.String tag, MergeStrategy strategy)
tag
- Tag to setstrategy
- Strategy to usepublic void init(Descriptor base)
init
in interface DescriptorMerger
base
- the base for the merge.public void merge(Descriptor other)
merge
in interface DescriptorMerger
other
- descriptor to mergeprotected MergeStrategy getMergeStrategy(java.lang.String tag)
tag
- tag to get the merge strategy for
public MergeStrategy getDefaultStrategyIfNoneSpecified()
public void setDefaultStrategyIfNoneSpecified(MergeStrategy defaultStrategyIfNoneSpecified)
defaultStrategyIfNoneSpecified
- the defaultStrategyIfNoneSpecified to setpublic DescriptorType getDescriptorType()
public void setDescriptorType(DescriptorType descriptorTagFactory)
descriptorTagFactory
- the descriptorTagFactory to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |