|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.construct.util.RoundTripBndFile
public class RoundTripBndFile
Support round-trip editing of Bnd files, preserving formatting as much as possible
Constructor Summary | |
---|---|
RoundTripBndFile(java.io.File bndFile)
|
Method Summary | |
---|---|
java.io.File |
getBasedir()
|
java.util.Set |
getDirectives()
|
java.io.File |
getFile()
|
java.lang.String |
getInstruction(java.lang.String directive)
|
void |
overlayInstructions(BndUtils.Bnd bnd)
Overlay existing instructions onto the current setup |
boolean |
removeInstruction(java.lang.String directive)
|
void |
setInstruction(java.lang.String directive,
java.lang.String instruction,
boolean overwrite)
|
void |
write()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoundTripBndFile(java.io.File bndFile) throws java.io.IOException
bndFile
- property file containing Bnd instructions
java.io.IOException
Method Detail |
---|
public java.lang.String getInstruction(java.lang.String directive)
getInstruction
in interface BndUtils.Bnd
directive
- a Bnd directive
public void setInstruction(java.lang.String directive, java.lang.String instruction, boolean overwrite) throws BndUtils.ExistingInstructionException
setInstruction
in interface BndUtils.Bnd
directive
- a Bnd directiveinstruction
- a Bnd instructionoverwrite
- overwrite existing instruction if true, otherwise throw BndUtils.ExistingInstructionException
BndUtils.ExistingInstructionException
public boolean removeInstruction(java.lang.String directive)
removeInstruction
in interface BndUtils.Bnd
directive
- a Bnd directive
public java.util.Set getDirectives()
getDirectives
in interface BndUtils.Bnd
public void overlayInstructions(BndUtils.Bnd bnd)
overlayInstructions
in interface BndUtils.Bnd
bnd
- existing Bnd instructionspublic java.io.File getFile()
getFile
in interface BndUtils.Bnd
public java.io.File getBasedir()
getBasedir
in interface BndUtils.Bnd
public void write() throws java.io.IOException
write
in interface BndUtils.Bnd
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |