| java.lang.Object org.netbeans.modules.uml.integration.ide.events.MemberTransaction
MemberTransaction | public class MemberTransaction (Code) | | The MemberTransaction is use to maintain a context when updating data
members. The MemberTransaction will locate the data member in Describes
database. When locating the data member the class symbol specified by
the SymbolTransaction will be searched for any attributes that match
the requested attribute.
Revision History
No. Date Who What
--- ---- --- ----
1 2002-06-19 Darshan Fixed fullScopeName not using the fully scoped
name in setAttribute().
2 2002-06-21 Darshan Added support for IStructuralFeature instead of
IAttribute and extended createAttribute to
create a navigable association where required.
|
MemberTransaction | public MemberTransaction(IProject proj)(Code) | | Creates new MemberTransaction and specify which system to search for
the attribute.
|
MemberTransaction | public MemberTransaction(SymbolTransaction trans, MemberInfo member)(Code) | | Create a new MemberTransaction and specify the symbol to search and
data member to find. If the member will be created if one is needed.
Parameters: trans - The symbol transaction used when searching for the memeber. Parameters: member - The information required to locate the data member. |
createAttribute | protected IStructuralFeature createAttribute(IClassifier sym, String name, String fullName, String sourceName, int modifierMask)(Code) | | Create a new Describe attribute to represent the data member. This is helper
routine.
Parameters: sym - The symbol that will contain the attribute. Parameters: name - The name of the attribute. Parameters: The - type of the data member. |
getAttribute | public IStructuralFeature getAttribute()(Code) | | Retrieve the Describe representation of the data member.
In the future this may be abstracted.
|
getProject | public IProject getProject()(Code) | | Retrieves the Describe system to use when retrieving the symbols information. Therefore,
the symbol will also reside in the Describe system.
Parameters: value - The Describe system. |
isImplAttribute | public boolean isImplAttribute()(Code) | | Checks if the data memeber is an implementation attribute.
true if the an implementation attribute, false otherwise. |
isPrimative | protected boolean isPrimative(String type)(Code) | | Checks if the type is a Java primitive.
true if the type is a Java primitive. |
setAttribute | public void setAttribute(IStructuralFeature attr)(Code) | | Set the Describe representation of the data member.
In the future this may be abstracted.
|
setAttribute | public void setAttribute(SymbolTransaction trans, MemberInfo member)(Code) | | Sets the Describe attribute that defines data member. A Describe symbol
is search for a data member that matches the requested data member name. If
a Describe attribute is not found then one is created for the data member.
Parameters: trans - The symbol transaction used to locate the data memeber. Parameters: member - The information needed to locate the data memeber. |
setIsImplAttribute | public void setIsImplAttribute(boolean value)(Code) | | Sets if the data memeber is an implementation attribute.
Parameters: value - true if the an implementation attribute, false otherwise. |
setProject | protected void setProject(IProject proj)(Code) | | Sets the Describe system to use when retrieving the symbols information. Therefore,
the symbol will also reside in the Describe system.
Parameters: value - The Describe system. |
|
|