The MemberInfo communicates with the EventManager to update Describe.
MemberInfo is still a high level class. It knows how to communicate with
the EventMangaer to update Describe, but it does not know any of the details
of how to update Describe.
Because MemberInfo contains both before and after data, MemberInfo is able
to search for the data member and update it to how the source file current
represents the member.
Revision History
No. Date Who What
--- ---- --- ----
1 2002-04-25 Darshan Added (currently empty) constructors to
create a MemberInfo given an IAttribute.
2 2002-04-26 Darshan Added constructor to create a MemberInfo off
an IAttribute and reformatted the file to
4-space tabs.
3 2002-04-30 Darshan Used JavaClassUtils to map Describe's modifiers
to Java modifiers.
4 2002-05-06 Darshan Changed MemberInfo(ClassInfo, IAttribute) to
call the ElementInfo(INamedElement) constructor.
5 2002-05-29 Darshan Added check for navigable ends.
6 2002-06-05 Darshan Allow creation of MemberInfo from an
IStructuralFeature instead of an IAttribute,
since this allows us to construct MemberInfos
from INavigableEnds (so that we can navigate
to the attribute for a navigable end).
7 2002-06-21 Darshan Expanded check for the parent class for an
INavigableEnd, fixed attribute delete and
initializer bugs.
8 2002-06-22 Darshan Included code suggested by Sumitabh to find the
referencing classifier of an INavigableEnd.
See Also:EventManager
getInitializer() Retrieves the initailizer for the data member.
public static int
getMultiplicity(String name) Returns the number of array specifiers that qualify the type name given.
Parameters: name - The type name (including array specifiers) The number of array specifiers.
update(SymbolTransaction trans) Updates the data member using the specified Symbol transaction.
Parameters: trans - The transaction that is to be used to update the correct symbol.
Intiailizes a new MemberInfo.
Parameters: container - The class that contains the data member. Parameters: type - The transaction type. See Also:ElementInfo
Retrieves the initailizer for the data member.
The data members initailizer.
getMultiplicity
public static int getMultiplicity(String name)(Code)
Returns the number of array specifiers that qualify the type name given.
Parameters: name - The type name (including array specifiers) The number of array specifiers. Ex: For "int[][]", returns 2.
Strips out array specifiers from a given type name.
Parameters: name - The type name (possibly including array specifiers) For "int[][]" returns "int"For "String" returns "String"
Set all properties for this MemberInfo using info from the given
IStructuralFeature.
Parameters: attr - An IStructuralFeature for the attribute (ornavigable association).
Updates the data member using the specified Symbol transaction.
Parameters: trans - The transaction that is to be used to update the correct symbol. The member transaction that was created to update the data member.
Fields inherited from org.netbeans.modules.uml.integration.ide.events.ElementInfo