public class Contribution extends java.lang.Object implements KeyedElement
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
contributorId |
static byte |
EXTENSION |
static byte |
EXTENSION_POINT |
protected boolean |
persist |
protected ExtensionRegistry |
registry |
| Modifier | Constructor and Description |
|---|---|
protected |
Contribution(java.lang.String contributorId,
ExtensionRegistry registry,
boolean persist) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(KeyedElement other) |
protected java.lang.String |
getContributorId() |
java.lang.String |
getDefaultNamespace() |
protected int[] |
getExtensionPoints() |
protected int[] |
getExtensions() |
java.lang.Object |
getKey() |
int |
getKeyHashCode() |
protected int[] |
getRawChildren() |
boolean |
hasChild(int id)
Find if this contribution has a children with ID = id.
|
boolean |
isEmpty()
Contribution is empty if it has no children.
|
boolean |
shouldPersist() |
java.lang.String |
toString() |
void |
unlinkChild(int id) |
protected ExtensionRegistry registry
protected final java.lang.String contributorId
protected boolean persist
public static final byte EXTENSION_POINT
public static final byte EXTENSION
protected Contribution(java.lang.String contributorId,
ExtensionRegistry registry,
boolean persist)
protected java.lang.String getContributorId()
protected int[] getRawChildren()
protected int[] getExtensions()
protected int[] getExtensionPoints()
public java.lang.String getDefaultNamespace()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getKeyHashCode()
getKeyHashCode in interface KeyedElementpublic java.lang.Object getKey()
getKey in interface KeyedElementpublic boolean compare(KeyedElement other)
compare in interface KeyedElementpublic boolean shouldPersist()
public void unlinkChild(int id)
public boolean isEmpty()
public boolean hasChild(int id)
id - possible ID of the child