public abstract class AbstractBuildableObject extends AbstractDBObject
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
Modifier | Constructor and Description |
---|---|
|
AbstractBuildableObject() |
protected |
AbstractBuildableObject(java.lang.String name,
DBObjectID id)
Constructs a new instance with the specified name and id.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkInit()
Checks that the whole object is initialized (built).
|
protected void |
checkInit(java.lang.String prop)
Checks that the given property has been built.
|
protected void |
copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy)
Implementation method for making a copy of this object.
|
protected void |
getOwnedObjectsImpl(java.util.Collection<DBObject> c,
java.lang.String... types)
Implementation first checks that the object has been built - then returns
the collection from suprt.getOwnedObjectsImpl().
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Gets the property map that stores all the property information for this
object.
|
protected void |
getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
Implementation first checks that the object has been built - then returns
the collection from suprt.getReferenceIDsImpl().
|
protected boolean |
needsInitialization()
Checks if there is still a DBObjectBuilder registered against this object,
identifying that it is not yet fully built.
|
addObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toString
public AbstractBuildableObject()
protected AbstractBuildableObject(java.lang.String name, DBObjectID id)
name
- a string representing the name of this object.id
- the id for this object.protected boolean needsInitialization()
protected void checkInit(java.lang.String prop)
protected void checkInit()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
DBObject
getProperties
in interface DBObject
getProperties
in interface DynamicPropertySet
getProperties
in class AbstractDBObject
protected void getOwnedObjectsImpl(java.util.Collection<DBObject> c, java.lang.String... types)
getOwnedObjectsImpl
in class AbstractDBObject
c
- a Collection of the apppropriate children.types
- a vararg of the type(s) to search forAbstractDBObject.includesType(java.lang.String, java.lang.String...)
protected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
getReferenceIDsImpl
in class AbstractDBObject
refs
- the collection of ids this object referencesprotected void copyToImpl(AbstractDBObject copy, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
copyToImpl
in class AbstractDBObject
copy
- the copy being created of this objectcopyParent
- if this object is being copied underneath a parent, this
parameter is the copy of the parent of this object, which will therefore
need to be the parent of the copy of this object.idPolicy
- the policy for copying the object's ID.