public class ContributionBuilder extends AbstractContribution
Constructor and Description |
---|
ContributionBuilder(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String target,
String point,
List<Object> contribs) |
void |
addExtension(String target,
String point,
Object... contribs) |
void |
addXmlExtension(String target,
String point,
String content) |
URL |
asURL()
Get an URL to that stream.
|
String |
getContent()
Gets the contribution XML content.
|
String |
getDescription()
Gets the contribution description.
|
InputStream |
getStream()
Gets the contribution XML content.
|
boolean |
isDisabled()
Whether this contribution should be automatically installed at startup.
|
void |
setBundle(String bundle) |
void |
setDisabled(boolean isDisabled)
Sets the auto install flag for this contribution.
|
getId, getName, setDescription
public ContributionBuilder(String name)
public URL asURL()
StreamRef
public void setBundle(String bundle)
public String getDescription()
Contribution
getDescription
in interface Contribution
getDescription
in class AbstractContribution
public boolean isDisabled()
Contribution
isDisabled
in interface Contribution
isDisabled
in class AbstractContribution
public void setDisabled(boolean isDisabled)
Contribution
setDisabled
in interface Contribution
setDisabled
in class AbstractContribution
public void addXmlExtension(String target, String point, String content) throws Exception
Exception
public void addExtension(String target, String point, Object... contribs) throws Exception
Exception
public void addExtension(String target, String point, List<Object> contribs) throws Exception
Exception
public String getContent()
Contribution
public InputStream getStream()
Contribution
Copyright © 2013 Nuxeo SA. All Rights Reserved.