public abstract class AbstractSubContainer extends AbstractContainer implements ISubContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME_SEPARATOR |
Constructor and Description |
---|
AbstractSubContainer(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
appendNameTo(java.lang.StringBuilder builder)
Adds the name representation (which might be more than just the name itself)) to the given builder.
|
boolean |
equals(java.lang.Object obj)
Takes the parent container into account!
|
IContainer |
getContainer()
Returns the container this item is associated with.
|
protected java.lang.String |
getNameSeparator() |
protected boolean |
hasContainer() |
int |
hashCode()
Takes the parent container into account!
|
void |
setContainer(IContainer container)
Sets the container of this item.
|
addItem, basicAdd, basicEquals, basicHashCode, basicRemove, contains, getItemList, getItems, getName, isEmpty, release, removeItem, setName, size, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addItem, getItems, isEmpty, removeItem, size
getName
release
public static final java.lang.String NAME_SEPARATOR
public IContainer getContainer()
IItem
getContainer
in interface IItem
public void setContainer(IContainer container)
IItem
IReleasable.release()
instead.setContainer
in interface IItem
container
- The container to associate the item with (not null).public void appendNameTo(java.lang.StringBuilder builder)
INamedElement
appendNameTo
in interface INamedElement
appendNameTo
in class AbstractContainer
builder
- The builder to which the name representation must be added.public int hashCode()
hashCode
in class AbstractContainer
public boolean equals(java.lang.Object obj)
equals
in class AbstractContainer
protected boolean hasContainer()
protected java.lang.String getNameSeparator()