|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenElement
Container for constructing objects during regen. This is a recursive structure that can contain any number of GenElement children. Each entry holds a reference to a domain object. Entries are added here for two purposes: - This is the container for all constructed domain objects. Builders can add or find objects here. - The Designer knows how to display the tree of entries contained here. For each entry in a GenElement tree, there are these values maintained: - The name (unique ID) of the entry - The type (e.g. Page, Variable). - The domain object, which is type Object and is completely domain specific. - The builder Call ID of the builder that created the object. - A list of children GenElements.
Field Summary | |
---|---|
static int[] |
ASSOCIATION_MAP
|
static int |
ASSODIR_BOTH
|
static int |
ASSODIR_NO_ARROW
Appropriate values for 'direction' parameter in addAssociation |
static int |
ASSODIR_SOURCE
|
static int |
ASSODIR_TARGET
|
static java.lang.String |
TYPE_MATCHALL
|
Method Summary | |
---|---|
void |
addAssociation(GenElement genElement,
java.lang.String builderId,
java.lang.String type,
java.lang.String comment,
int direction)
Add an association between two GenElements. |
GenElement |
addChildDomainObject(java.lang.String type,
java.lang.String objectName,
BuilderCall builderCall,
java.lang.String builderId,
java.lang.Object obj)
Add a new child Domain object. |
GenElement |
addChildElement(GenElement genElement)
Add an existing GenElement as a child. |
void |
addExternalAssociation(com.bowstreet.generation.Association.ExternalAssociation association)
Add an assoiaction to an external entity. |
void |
addModelEditorLayoutListener(IModelEditorLayoutListener listener)
Adds a layout listener to this genElement |
void |
addModifierBuilderId(java.lang.String builderId)
Add a BuilderID to the modifier list. |
java.util.Collection |
getAssociations()
Get all the associations related to this GenElement |
BuilderCall |
getBuilderCall()
Get the BuilderCall that created this GenElement. |
java.lang.String |
getBuilderId()
Get the id of the Builder that created this GenElement. |
java.lang.Object |
getChildDomainObject(java.lang.String type,
java.lang.String objectName)
Get child domain object by type/name. |
java.util.Iterator |
getChildDomainObjects(java.lang.String type)
Get the child domain objects with a specified type. |
GenElement |
getChildElement(java.lang.String type,
java.lang.String objectName)
Get a child GenElement by type/name. |
java.util.Collection |
getChildElements(java.lang.String type)
Get the child Elements with a specified type. |
java.util.Collection |
getChildTypes()
Get a list of strings types represented by all the children of this GenElement. |
java.lang.Object |
getDomainObject()
Get the Domain Object. |
boolean |
getIsHidden()
returns true if this element should be hidden in the UI |
java.util.Collection |
getModelEditorLayoutListeners()
Get the layout listeners that have been added to this genElement |
java.util.Set |
getModifierBuilderIds()
Get a list of the ids of the builders that have modified the DomainObject |
java.lang.String |
getName()
Get the name of this entry. |
GenElement |
getParent()
get the parent genElement. |
java.lang.String |
getSelector()
get a selector string that identifies this GenElement |
java.lang.String |
getType()
Get the type of this entry. |
java.lang.String |
getTypeForced()
Get the type whether it is hidden or not. |
void |
internalAddAssociation(com.bowstreet.generation.Association association)
Interfaces don't offer protected -- seems stupid. |
void |
removeChildElement(GenElement genElement)
Removes this GenElement or one that "matches" it (i.e. same type and objectName) |
void |
removeChildElement(java.lang.String type,
java.lang.String objectName)
Remove the GenElement that you would find if you searched by this name and type. |
void |
setHiddenType(java.lang.String type)
Set a type that will be hidden from getType and getChildTypes. |
void |
setIsHidden(boolean hidden)
Set the state of whether or not this element should be hidden in the UI. |
Field Detail |
---|
static final int[] ASSOCIATION_MAP
static final int ASSODIR_BOTH
static final int ASSODIR_NO_ARROW
static final int ASSODIR_SOURCE
static final int ASSODIR_TARGET
static final java.lang.String TYPE_MATCHALL
Method Detail |
---|
void addAssociation(GenElement genElement, java.lang.String builderId, java.lang.String type, java.lang.String comment, int direction)
genElement
- the GenElement to association this one to -- if null this call will be a nopbuilderId
- the BuilderCall making this associationtype
- Type of association -- interpreted to the graphical representationcomment
- Additional text about the associationdirection
- which ends have arrow heads.GenElement addChildDomainObject(java.lang.String type, java.lang.String objectName, BuilderCall builderCall, java.lang.String builderId, java.lang.Object obj)
GenElement addChildElement(GenElement genElement)
void addExternalAssociation(com.bowstreet.generation.Association.ExternalAssociation association)
association
- void addModelEditorLayoutListener(IModelEditorLayoutListener listener)
listener
- void addModifierBuilderId(java.lang.String builderId)
builderId
- java.util.Collection getAssociations()
BuilderCall getBuilderCall()
java.lang.String getBuilderId()
java.lang.Object getChildDomainObject(java.lang.String type, java.lang.String objectName)
java.util.Iterator getChildDomainObjects(java.lang.String type)
GenElement getChildElement(java.lang.String type, java.lang.String objectName)
java.util.Collection getChildElements(java.lang.String type)
java.util.Collection getChildTypes()
java.lang.Object getDomainObject()
boolean getIsHidden()
java.util.Collection getModelEditorLayoutListeners()
java.util.Set getModifierBuilderIds()
java.lang.String getName()
GenElement getParent()
java.lang.String getSelector()
java.lang.String getType()
java.lang.String getTypeForced()
void internalAddAssociation(com.bowstreet.generation.Association association)
association
- The association to addvoid removeChildElement(GenElement genElement)
void removeChildElement(java.lang.String type, java.lang.String objectName)
void setHiddenType(java.lang.String type)
type
- void setIsHidden(boolean hidden)
hidden
- true to hide it.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |