public class ContributionBuilder extends AbstractContribution
| Modifier and Type | Field and Description |
|---|---|
protected String |
bundle |
protected DocumentBuilderFactory |
dbfac |
protected List<String> |
extensions |
description, disabled, id, loaded, name| 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, load, setDescriptionprotected final DocumentBuilderFactory dbfac
protected final List<String> extensions
public ContributionBuilder(String name)
public URL asURL()
StreamRefpublic String getDescription()
ContributiongetDescription in interface ContributiongetDescription in class AbstractContributionpublic boolean isDisabled()
ContributionisDisabled in interface ContributionisDisabled in class AbstractContributionpublic void setDisabled(boolean isDisabled)
ContributionsetDisabled in interface ContributionsetDisabled in class AbstractContributionpublic void addXmlExtension(String target, String point, String content)
public void addExtension(String target, String point, Object... contribs)
public void addExtension(String target, String point, List<Object> contribs)
public String getContent()
Contributionpublic InputStream getStream()
ContributionCopyright © 2018 Nuxeo. All rights reserved.