public class Aggregation extends Object
Modifier and Type | Field and Description |
---|---|
static TGContentType |
CONTENT_TYPE |
protected ListenerList |
listeners |
Constructor and Description |
---|
Aggregation(Aggregation parent,
String name,
TextGridObject object,
TextGridProject project)
Creates a new aggregation.
|
Aggregation(Aggregation parent,
String name,
TextGridObject object,
TextGridProject project,
boolean test)
Creates a new aggregation for (Aggregation)-circle-test only.
|
Modifier and Type | Method and Description |
---|---|
void |
addAfter(Object after,
Object newObject) |
void |
addBefore(Object before,
Object newObject) |
void |
addChild(Object child) |
void |
addListener(ISectionListener listener) |
void |
delete() |
protected void |
fireAdd(Object added) |
protected void |
fireRemove(Object removed) |
protected void |
fireRename() |
Object[] |
getChildren() |
boolean |
getLatest() |
String |
getName() |
TextGridObject |
getObject() |
Aggregation |
getParent() |
TextGridObject |
getRevision() |
URI |
getURI()
Returns the URI that should be written into an aggregation aggregating
this aggregation.
|
String |
getUuid() |
boolean |
hasParent(Aggregation aggregation)
Returns true if this Aggregation has a parent equal to the given
Aggregation, and false otherwise.
|
void |
removeChild(Object child) |
void |
removeListener(ISectionListener listener) |
void |
resetChildren() |
void |
save(IProgressMonitor monitor,
boolean saveAsRevision) |
void |
setLatest(boolean latest) |
void |
setName(String name) |
void |
setObject(TextGridObject object) |
void |
setObjectToCollection()
Deprecated.
|
void |
setObjectToEdition()
Deprecated.
|
void |
setObjectToItem()
Deprecated.
|
void |
setParent(Aggregation newParent) |
void |
setRevision(TextGridObject revision) |
String |
toString() |
public static final TGContentType CONTENT_TYPE
protected ListenerList listeners
public Aggregation(Aggregation parent, String name, TextGridObject object, TextGridProject project)
parent
- the parent aggregation. If null, no aggregation.name
- the name / title for the aggregation.object
- the TextGridObject for the aggregation. If null
,
create a new onepublic Aggregation(Aggregation parent, String name, TextGridObject object, TextGridProject project, boolean test)
public void addListener(ISectionListener listener)
public void removeListener(ISectionListener listener)
protected void fireAdd(Object added)
protected void fireRemove(Object removed)
protected void fireRename()
public void addChild(Object child)
public Object[] getChildren()
public String getName()
public Aggregation getParent()
public boolean hasParent(Aggregation aggregation)
public void removeChild(Object child)
public void setParent(Aggregation newParent)
public String getUuid()
public void setName(String name)
public void delete()
public void setObject(TextGridObject object)
public TextGridObject getObject()
public void save(IProgressMonitor monitor, boolean saveAsRevision) throws XMLStreamException, CoreException
XMLStreamException
CoreException
public void resetChildren()
@Deprecated public void setObjectToEdition()
@Deprecated public void setObjectToItem()
@Deprecated public void setObjectToCollection()
public void setLatest(boolean latest)
public boolean getLatest()
public TextGridObject getRevision()
public void setRevision(TextGridObject revision)
public URI getURI()