Java Doc for ClassInfo.java in  » IDE-Netbeans » uml » org » netbeans » modules » uml » integration » ide » events » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » uml » org.netbeans.modules.uml.integration.ide.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.uml.integration.ide.events.ElementInfo
      org.netbeans.modules.uml.integration.ide.events.ClassInfo

ClassInfo
public class ClassInfo extends ElementInfo (Code)
A metaclass for Java classes, used for transferring information between IDE integrations and the Describe IDE integration package. This class is not synchronized. If you use a single ClassInfo instance in multiple threads, the responsibility for synchronization is with the caller. Revision History No. Date Who What --- ---- --- ---- 1 2002-04-23 Darshan Added preliminary support for a ClassInfo to be constructed from an IClass, to be used in model-source operations. 2 2002-04-24 Darshan Added more model-source support attributes and methods. 3 2002-04-24 Darshan Added more tweaks for model-source support - ClassInfo now keeps track of the IClass off which it was created and can update the IClass directly with the file name of the local file with which the IClass is associated. 4 2002-04-25 Darshan Updated to set the file path to the artifact associated with the class and to correctly initialize outerClass when creating a ClassInfo from an IClass. 5 2002-04-29 Darshan Added null checks in updateFilename(). 6 2002-04-30 Darshan Used JavaClassUtils to map Describe's modifiers to Java modifiers. 7 2002-04-30 Darshan Reformatted to 4-space tabs, added accessor to get the list of interfaces implemented and made InterfaceChangeInfo public. 8 2002-05-06 Darshan Made removeInterface() check for the same interface in the list of added interfaces and remove it if already present. Reformatted braces to Java style indenting. 9 2002-05-13 Darshan Updated to handle both class and interface events by manipulating IClassifier references instead of directly dealing with IClass and IInterface references. 10 2002-05-14 Darshan Moved the project selector code from update(SymbolTransaction) to update(). 11 2002-05-28 Darshan Synchronized on EventHandler instance to allow synch between source-model and model-source threads during class update. 12 2002-05-30 Darshan Fixed bugs in addInterface() and removeInterface() and added overloaded convenience methods for these. 13 2002-06-04 Darshan Added code to store only relative paths in a class element's artifact. The change is wholly internal to ClassInfo, so no other code should be affected. 14 2002-06-05 Darshan Fixed code to correctly pick up superinterfaces of an interface. 15 2002-06-10 Darshan Fixed creating multiple generalization links. 16 2002-06-14 Darshan Added calls to prevent roundtrip events during update. 17 2002-06-19 Darshan Flagged interfaces abstract by default. 18 2002-06-19 Darshan Added null pointer check before performing sanity check :) 19 2002-06-20 Darshan Turned on two-way roundtrip for attribute updates. 20 2002-06-25 Darshan Turned on two-way roundtrip for superclass/ interface updates (fix for 191 JBuilder- methods not passed down to children). 21 2002-06-28 Darshan Added support for creating reference classes for generalizations if necessary. 22 2002-07-02 Mukta Added a method to get the full class name, including the package name 23 2002-07-24 Darshan Setting the relative path to the file as a tagged value on the ISourceFileArtifact (temporary workaround as project base dir is not set correctly). 24 2002-08-14 Mukta Added code to set exisiting methods and attributes to the classinfo.
See Also:   EventManager

Inner Class :public class InterfaceChangeInfo
Inner Class :public static class StaticAndAccessModifierComparator implements Comparator<ElementInfo>

Field Summary
final public static  StringDS_CLASS
     Describe id for class elements.
final public static  StringDS_ENUMERATION
     Describe id for enumeration elements.
final public static  StringDS_INTERFACE
     Describe id for interface elements.
final public static  StringDS_STE_ENUMERATION
     Describe stereotype id for the enumeration stereotype.
final public static  StringDS_STE_INTERFACE
     Describe stereotype id for the interface stereotype.

Constructor Summary
public  ClassInfo(int type)
     Contructs a new ClassInfo object.
Parameters:
  type - The type of the transaction.
public  ClassInfo(IClassifier clazz)
     Creates a ClassInfo with data from the given IClassifier object.
public  ClassInfo(String name, String origPackage, int type)
     Creates a new ClassInfo object.
Parameters:
  name - The name of the class.
Parameters:
  origPackage - The package that contained the class before thecurrent change.
Parameters:
  type - The type of the transaction.
public  ClassInfo(String decoratedName, int type)
    

Method Summary
public  voidaddConstructor(ConstructorInfo value)
     Adds a constructor to the list of constructors that need to be updated.
Parameters:
  value - The ConstructorInfo to be updated.
public  voidaddGeneralization(IClassifier clazz)
     Issue a command to Describe to add a generalization associated with a class symbol.
public  voidaddImport(String stmt)
     Get the collection of imports that this class uses.
public  voidaddImport(IClassifier classToImport)
    
public  voidaddInnerClass(ClassInfo info)
     Add an inner class that needs to be updated.
public  voidaddInterface(String pName, String name)
     Add an implemented interface to the class definition.
public  voidaddInterface(String fullname)
    
public  voidaddLiteral(LiteralInfo info)
     Adds a enum literal that needs to be updated.
public  voidaddMember(MemberInfo info)
     Adds a data member that needs to be updated.
public  voidaddMethod(MethodInfo info)
     Adds a method that needs to be updated.
public  voidaddSuperInterface(IClassifier val)
    
 booleancheckAddAttributeName(String aName)
    
public  Objectclone()
    
public static  voideraseRefClass(IClassifier c)
     Removes any cached ClassInfo created from the given IClassifier.
public static  voideraseRefClasses()
     Clears all cached ClassInfos created by getRefClassInfo().
public  StringgetBasePath()
    
public  IClassifiergetClassElement()
     Returns the IClassifier from which this ClassInfo was constructed, or null if the ClassInfo was not constructed from an IClassifier.
public  StringgetCode()
    
public  StringgetCodeGenType(boolean fullyQualified, ClassInfo container)
    
public  VectorgetConstructors()
     Gets the class's constructors that need to be updated.
public  VectorgetConstructorsCodeGenSorted()
    
public  FileObjectgetExportPackageFileObject()
    
public  FileObjectgetExportPackageFileObject(String subfolder)
    
public  FileObjectgetExportSourceFolderFileObject()
    
public  StringgetExportSourceFolderName()
    
public  StringgetExportSourcePackage()
    
public  StringgetExtendedClass()
     Retrieve the name of the super class's.
public  StringgetExtendedPackage()
     The package that contains the super class.
public  VectorgetFieldsCodeGenSorted()
    
public  StringgetFilename()
     Gets the file that that contains the class.
public  StringgetFullClassName()
     forms a full class name including the package name.
public  String[]getFullyQualifiedCodeGenType()
    
public  StringgetId()
    
public  ArrayList<String>getImportedTypes()
    
public  VectorgetImports()
     Get the collection of imports that this class uses.
public  VectorgetInnerClasses()
     Gets the class's inner classes that need to be updated.
protected  VectorgetInterfaceChanges()
     Retrieves all the changes to the list of implemented interfaces.
public  InterfaceChangeInfo[]getInterfaces()
    
public  BooleangetIsInnerClass()
     Retrieves if the ClassInfo represents an inner class or a outer class.
public  VectorgetLiterals()
     Gets the enumeration's literals that need to be updated.
public  ArrayList<ClassInfo>getMemberTypes()
    
public  VectorgetMembers()
     Gets the class's members that need to be updated.
public  VectorgetMethods()
     Gets the class's methods that need to be updated.
public  VectorgetMethodsCodeGenSorted()
    
public  StringgetModifierText(Integer mods)
    
public  StringgetNewPackage()
     Gets the package name that contains the class.
public  StringgetNewSuperclass()
    
public  StringgetOldSuperclass()
    
public  ClassInfogetOuterClass()
     Retrieves this class's outer class.
public  ClassInfogetOuterMostOwner()
    
public  IProjectgetOwningProject()
    
protected  IProjectgetOwningProject(IElement el)
    
public  StringgetPackage()
     Gets the package name that contains the class.
public  IProjectgetProject()
    
public static  ClassInfogetRefClassInfo(IClassifier c, boolean reuse)
     Returns a reference ClassInfo, viz.
public static  ClassInfogetRefClassInfo(IClassifier c, boolean reuse, boolean fullInit)
    
public  ArrayList<String[]>getReferredCodeGenTypes()
    
public  StringgetRemovedExtendedClass()
     Retrieve the name of the super class's that is being removed.
public  StringgetRemovedExtendedPackage()
     Retrieve the name of the super class's that is being removed.
public  StringgetRootSourceDirectory()
     Retrieves the source directory root that Describe expects the package containing this class to live in.
public  StringgetShortClassName()
    
public  StringgetSourceDirectory()
     Returns the source directory in which Describe thinks this class should live.
public  IClassifiergetSuperClass()
    
public  ClassInfogetSuperClassInfo()
    
public  ArrayList<ClassInfo>getSuperInterfaceInfos()
    
public  ArrayList<IClassifier>getSuperInterfaces()
    
protected  StringgetSuperclass(IClassifier clazz)
    
public static  StringgetSymbolFilename(IClassifier clazz)
     Gets the file which which the given class is associated.
public  booleanisEnumeration()
     Retrieves if the ClassInfo represents an enumeration or a regular class.
public static  booleanisExecutingAddin()
    
public  booleanisInterface()
     Retrieves if the ClassInfo represents an interface or a class.
public  booleanisReferenceClass()
    
public  booleanmatches(ElementInfo el)
     Determines if the given ElementInfo matches this ClassInfo.
See Also:   ElementInfo.matches(ElementInfo)
Parameters:
  el - ElementInfo The ElementInfo to match against.
protected  Stringold2new(String oldS, String newS)
    
public  voidremoveGeneralization(IClassifier clazz)
     Issue a command to Describe to remove a generalization associated with a class symbol.
public  voidremoveInterface(String pName, String name)
     Remove an implemented interface to the class definition.
public  voidremoveInterface(String fullname)
    
public  IClassifierretrieveClassifier()
     Looks for the IClassifier corresponding to this ClassInfo in the Describe model.
public  voidsetBasePath(String basePath)
    
public  voidsetConstructors(Vector value)
     Sets the class's constructors that need to be updated.
public static  voidsetExecutingAddin(boolean state)
    
public  voidsetExportSourceFolderName(String sourceFolderName)
    
public  voidsetExtendedClass(String pName, String name)
     Set the class information that is the super class.
public  voidsetFilename(String value)
     Sets the file that that contains the class.
public  voidsetFromClassifier(IClassifier classifier)
     Initializes this ClassInfo using the given Describe IClassifier.
public  voidsetId(String id)
    
public  voidsetImports(Vector value)
     Set the collection of imports that this class uses.
public  voidsetInnerClasses(Vector value)
     Sets the class's inner classes that need to be updated.
public  voidsetIsEnumeration(boolean value)
     Specifies if the ClassInfo represents an enumeration or a class.
public  voidsetIsInnerClass(Boolean value)
     Specifies if the ClassInfo represents an inner class or a outer class.
public  voidsetIsInterface(boolean value)
     Specifies if the ClassInfo represents an interface or a class.
public  voidsetLiterals(IEnumeration en)
    
public  voidsetLiterals(Vector value)
     Sets the enumeration's literals that need to be updated.
public  voidsetMembers(Vector value)
     Sets the class's members that need to be updated.
public  voidsetMethods(Vector value)
     Sets the class's methods that need to be updated.
public  voidsetMethodsAndMembers(IClassifier clazz)
    
public  voidsetNewPackage(String value)
     Sets the package name that contains the class.
public  voidsetOuterClass(ClassInfo outC)
     Set this class's outer class.
public  voidsetPackage(String value)
     Sets the package name that contains the class.
protected  voidsetRefInfo(IClassifier clazz)
    
public  voidsetRemovedExtendedClass(String pName, String name)
     Set the class information that is no longer the super class.
public  voidsetSuperClass(IClassifier val)
    
protected  voidsetSuperInterfaces(IClassifier clazz)
    
public  voidsetSuperInterfaces(ArrayList<IClassifier> val)
    
protected  voidsetSuperclass(IClassifier clazz)
    
public static  voidsetSymbolFilename(IClassifier clazz, String filename)
     Sets the file with which the given class should be associated.
public  StringtoString()
    
public  voidupdate()
     Updates the Describe symbol that represents the class.
public  voidupdate(SymbolTransaction trans)
     Update Describe using the specified Symbol transaction.
protected  voidupdateConstructors(SymbolTransaction trans)
     Updates all the constructors for this symbol.
protected  voidupdateEnumLiterals(SymbolTransaction trans, int changeType)
     Updates all the data members for this symbol.
public  StringupdateFilename(String filename)
    
protected  voidupdateImports(EventManager manager, SymbolTransaction trans)
     Updates all the imports statements for this symbol.
protected  voidupdateInnerClasses(EventManager manager, SymbolTransaction trans)
     Updates all the inner classes for this symbol.
protected  voidupdateInterfaces(EventManager manager, SymbolTransaction trans)
     Updates the interfacres that this class implements.
protected  voidupdateMembers(SymbolTransaction trans, int changeType)
     Updates all the data members for this symbol.
protected  voidupdateMethods(SymbolTransaction trans, int changeType)
     Updates all the methods for this symbol.

Field Detail
DS_CLASS
final public static String DS_CLASS(Code)
Describe id for class elements.



DS_ENUMERATION
final public static String DS_ENUMERATION(Code)
Describe id for enumeration elements.



DS_INTERFACE
final public static String DS_INTERFACE(Code)
Describe id for interface elements.



DS_STE_ENUMERATION
final public static String DS_STE_ENUMERATION(Code)
Describe stereotype id for the enumeration stereotype.



DS_STE_INTERFACE
final public static String DS_STE_INTERFACE(Code)
Describe stereotype id for the interface stereotype.




Constructor Detail
ClassInfo
public ClassInfo(int type)(Code)
Contructs a new ClassInfo object.
Parameters:
  type - The type of the transaction. Valid values are:ElementInfo.CREATEElementInfo.DELETEElementInfo.MODIFY



ClassInfo
public ClassInfo(IClassifier clazz)(Code)
Creates a ClassInfo with data from the given IClassifier object.
Parameters:
  clazz -



ClassInfo
public ClassInfo(String name, String origPackage, int type)(Code)
Creates a new ClassInfo object.
Parameters:
  name - The name of the class.
Parameters:
  origPackage - The package that contained the class before thecurrent change.
Parameters:
  type - The type of the transaction. Valid values are:ElementInfo.CREATEElementInfo.DELETEElementInfo.MODIFY



ClassInfo
public ClassInfo(String decoratedName, int type)(Code)




Method Detail
addConstructor
public void addConstructor(ConstructorInfo value)(Code)
Adds a constructor to the list of constructors that need to be updated.
Parameters:
  value - The ConstructorInfo to be updated. If this isan instance of MethodInfo, addMethod() will be called internally (taking advantage of thisis likely to cause confusion, though).



addGeneralization
public void addGeneralization(IClassifier clazz)(Code)
Issue a command to Describe to add a generalization associated with a class symbol.
Parameters:
  state - The transaction to act upon.
Parameters:
  value - The value.



addImport
public void addImport(String stmt)(Code)
Get the collection of imports that this class uses. A vector of strings.



addImport
public void addImport(IClassifier classToImport)(Code)



addInnerClass
public void addInnerClass(ClassInfo info)(Code)
Add an inner class that needs to be updated.
Parameters:
  info - The inner class to add.



addInterface
public void addInterface(String pName, String name)(Code)
Add an implemented interface to the class definition.
Parameters:
  pName - The package of the interface.
Parameters:
  name - The interface name.



addInterface
public void addInterface(String fullname)(Code)



addLiteral
public void addLiteral(LiteralInfo info)(Code)
Adds a enum literal that needs to be updated.
Parameters:
  info - A list of LiteralInfo objects.



addMember
public void addMember(MemberInfo info)(Code)
Adds a data member that needs to be updated.
Parameters:
  info - A list of MemberInfo objects.



addMethod
public void addMethod(MethodInfo info)(Code)
Adds a method that needs to be updated.
Parameters:
  info - A list of MethodInfo objects.



addSuperInterface
public void addSuperInterface(IClassifier val)(Code)



checkAddAttributeName
boolean checkAddAttributeName(String aName)(Code)



clone
public Object clone()(Code)



eraseRefClass
public static void eraseRefClass(IClassifier c)(Code)
Removes any cached ClassInfo created from the given IClassifier.
Parameters:
  c - The IClassifier which has (probably) been modified,thereby invalidating dependent ClassInfos.



eraseRefClasses
public static void eraseRefClasses()(Code)
Clears all cached ClassInfos created by getRefClassInfo().



getBasePath
public String getBasePath()(Code)



getClassElement
public IClassifier getClassElement()(Code)
Returns the IClassifier from which this ClassInfo was constructed, or null if the ClassInfo was not constructed from an IClassifier. Note that this is not recommended for use by IDE-specific code. IClassifier The IClassifier from which the ClassInfowas built.



getCode
public String getCode()(Code)



getCodeGenType
public String getCodeGenType(boolean fullyQualified, ClassInfo container)(Code)



getConstructors
public Vector getConstructors()(Code)
Gets the class's constructors that need to be updated. This may not include all the class's constructors, only the ones that need to be updated. A list of MethodInfo objects.



getConstructorsCodeGenSorted
public Vector getConstructorsCodeGenSorted()(Code)



getExportPackageFileObject
public FileObject getExportPackageFileObject()(Code)



getExportPackageFileObject
public FileObject getExportPackageFileObject(String subfolder)(Code)



getExportSourceFolderFileObject
public FileObject getExportSourceFolderFileObject()(Code)



getExportSourceFolderName
public String getExportSourceFolderName()(Code)



getExportSourcePackage
public String getExportSourcePackage()(Code)



getExtendedClass
public String getExtendedClass()(Code)
Retrieve the name of the super class's. The name.
See Also:   ClassInfo.getRemovedExtendedClass



getExtendedPackage
public String getExtendedPackage()(Code)
The package that contains the super class. The package.
See Also:   ClassInfo.getRemovedExtendedPackage



getFieldsCodeGenSorted
public Vector getFieldsCodeGenSorted()(Code)



getFilename
public String getFilename()(Code)
Gets the file that that contains the class. The name of the file.



getFullClassName
public String getFullClassName()(Code)
forms a full class name including the package name.



getFullyQualifiedCodeGenType
public String[] getFullyQualifiedCodeGenType()(Code)



getId
public String getId()(Code)



getImportedTypes
public ArrayList<String> getImportedTypes()(Code)



getImports
public Vector getImports()(Code)
Get the collection of imports that this class uses. A vector of strings.



getInnerClasses
public Vector getInnerClasses()(Code)
Gets the class's inner classes that need to be updated. This may not include all the class's inner classes, only the ones that need to be updated. A list of ClassInfo objects.



getInterfaceChanges
protected Vector getInterfaceChanges()(Code)
Retrieves all the changes to the list of implemented interfaces. A list of InterfaceChangeInfo.



getInterfaces
public InterfaceChangeInfo[] getInterfaces()(Code)



getIsInnerClass
public Boolean getIsInnerClass()(Code)
Retrieves if the ClassInfo represents an inner class or a outer class. true if the class is an inner class, false otherwise.



getLiterals
public Vector getLiterals()(Code)
Gets the enumeration's literals that need to be updated. This may not include all the enumeration's literals, only the ones that need to be updated. A list of LiteralInfo objects.



getMemberTypes
public ArrayList<ClassInfo> getMemberTypes()(Code)



getMembers
public Vector getMembers()(Code)
Gets the class's members that need to be updated. This may not include all the class's members, only the ones that need to be updated. A list of MemberInfo objects.



getMethods
public Vector getMethods()(Code)
Gets the class's methods that need to be updated. This may not include all the class's methods, only the ones that need to be updated. A list of ConstructorInfo objects.



getMethodsCodeGenSorted
public Vector getMethodsCodeGenSorted()(Code)



getModifierText
public String getModifierText(Integer mods)(Code)



getNewPackage
public String getNewPackage()(Code)
Gets the package name that contains the class. This is the new package name. The fully qualified name of the pacakge.



getNewSuperclass
public String getNewSuperclass()(Code)



getOldSuperclass
public String getOldSuperclass()(Code)



getOuterClass
public ClassInfo getOuterClass()(Code)
Retrieves this class's outer class. The class information for the outer class, or null if this classdoes not have a outer class.



getOuterMostOwner
public ClassInfo getOuterMostOwner()(Code)



getOwningProject
public IProject getOwningProject()(Code)



getOwningProject
protected IProject getOwningProject(IElement el)(Code)



getPackage
public String getPackage()(Code)
Gets the package name that contains the class. This is the original package name. The fully qualified name of the pacakge.



getProject
public IProject getProject()(Code)



getRefClassInfo
public static ClassInfo getRefClassInfo(IClassifier c, boolean reuse)(Code)
Returns a reference ClassInfo, viz. a ClassInfo with the bare minimum information needed to locate the source file.
Parameters:
  c - The IClassifier from which to construct theClassInfo. If null, returnsnull.
Parameters:
  reuse - If true, attempt to reuse a cached ClassInfocreated from the same IClassifier. Use with care! The reference ClassInfo.



getRefClassInfo
public static ClassInfo getRefClassInfo(IClassifier c, boolean reuse, boolean fullInit)(Code)



getReferredCodeGenTypes
public ArrayList<String[]> getReferredCodeGenTypes()(Code)



getRemovedExtendedClass
public String getRemovedExtendedClass()(Code)
Retrieve the name of the super class's that is being removed. The name.
See Also:   ClassInfo.getExtendedClass



getRemovedExtendedPackage
public String getRemovedExtendedPackage()(Code)
Retrieve the name of the super class's that is being removed. The name.
See Also:   ClassInfo.getExtendedPackage



getRootSourceDirectory
public String getRootSourceDirectory()(Code)
Retrieves the source directory root that Describe expects the package containing this class to live in. This is obtained by retrieving the SourceDir property of the owning package/project, and stripping off the package directories. The absolute path to the root of the source directory.



getShortClassName
public String getShortClassName()(Code)



getSourceDirectory
public String getSourceDirectory()(Code)
Returns the source directory in which Describe thinks this class should live. In general, this is just the value of the SourceDir property for the package to which the IClassifier for this class belongs. This method will return null if a) the ClassInfo doesn't have an IClassifier b) the owning package does not have a valid SourceDir property, or c) a weird error occurs. Weird errors are logged, but no exceptions will be thrown. The absolute path in which Describe fancies this file ought tolive.



getSuperClass
public IClassifier getSuperClass()(Code)



getSuperClassInfo
public ClassInfo getSuperClassInfo()(Code)



getSuperInterfaceInfos
public ArrayList<ClassInfo> getSuperInterfaceInfos()(Code)



getSuperInterfaces
public ArrayList<IClassifier> getSuperInterfaces()(Code)



getSuperclass
protected String getSuperclass(IClassifier clazz)(Code)



getSymbolFilename
public static String getSymbolFilename(IClassifier clazz)(Code)
Gets the file which which the given class is associated. Not intended for direct use by IDE integrations.
Parameters:
  clazz -



isEnumeration
public boolean isEnumeration()(Code)
Retrieves if the ClassInfo represents an enumeration or a regular class. true if the class is an enumeration, false otherwise.



isExecutingAddin
public static boolean isExecutingAddin()(Code)



isInterface
public boolean isInterface()(Code)
Retrieves if the ClassInfo represents an interface or a class. true if the class is an interface, false otherwise.



isReferenceClass
public boolean isReferenceClass()(Code)



matches
public boolean matches(ElementInfo el)(Code)
Determines if the given ElementInfo matches this ClassInfo.
See Also:   ElementInfo.matches(ElementInfo)
Parameters:
  el - ElementInfo The ElementInfo to match against. true if the other ElementInfo is a ClassInfo andmatches the name, package, JavaDoc comment, superclass, filenameand modifiers of this ClassInfo.



old2new
protected String old2new(String oldS, String newS)(Code)



removeGeneralization
public void removeGeneralization(IClassifier clazz)(Code)
Issue a command to Describe to remove a generalization associated with a class symbol.
Parameters:
  state - The transaction to act upon.
Parameters:
  value - The value.



removeInterface
public void removeInterface(String pName, String name)(Code)
Remove an implemented interface to the class definition.
Parameters:
  pName - The package of the interface.
Parameters:
  name - The interface name.



removeInterface
public void removeInterface(String fullname)(Code)



retrieveClassifier
public IClassifier retrieveClassifier()(Code)
Looks for the IClassifier corresponding to this ClassInfo in the Describe model. The IClassifier found will also be returned by subsequent calls to getClassElement(). Not recommended for use by IDE code. The IClassifier, or null if there is no equivalentto this ClassInfo in the Describe model.



setBasePath
public void setBasePath(String basePath)(Code)



setConstructors
public void setConstructors(Vector value)(Code)
Sets the class's constructors that need to be updated. This may not include all the class's constructors, only the ones that need to be updated.
Parameters:
  value - A list of ConstructorInfo objects.



setExecutingAddin
public static void setExecutingAddin(boolean state)(Code)



setExportSourceFolderName
public void setExportSourceFolderName(String sourceFolderName)(Code)



setExtendedClass
public void setExtendedClass(String pName, String name)(Code)
Set the class information that is the super class.
Parameters:
  pName - The package of the super class.
Parameters:
  name - The super class name.
See Also:   ClassInfo.setRemovedExtendedClass



setFilename
public void setFilename(String value)(Code)
Sets the file that that contains the class.
Parameters:
  value - The name of the file.



setFromClassifier
public void setFromClassifier(IClassifier classifier)(Code)
Initializes this ClassInfo using the given Describe IClassifier. Note: this is not recommended for use by IDEs.
Parameters:
  cinfo - The Describe IClassifier that's used to initialize thisClassInfo.



setId
public void setId(String id)(Code)



setImports
public void setImports(Vector value)(Code)
Set the collection of imports that this class uses.
Parameters:
  value - A vector of strings.



setInnerClasses
public void setInnerClasses(Vector value)(Code)
Sets the class's inner classes that need to be updated. This may not include all the class's inner classes, only the ones that need to be updated.
Parameters:
  value - A list of ClassInfo objects.



setIsEnumeration
public void setIsEnumeration(boolean value)(Code)
Specifies if the ClassInfo represents an enumeration or a class.
Parameters:
  value - true if the class is an enumeration, false otherwise.



setIsInnerClass
public void setIsInnerClass(Boolean value)(Code)
Specifies if the ClassInfo represents an inner class or a outer class.
Parameters:
  value - true if the class is an inner class, false otherwise.



setIsInterface
public void setIsInterface(boolean value)(Code)
Specifies if the ClassInfo represents an interface or a class.
Parameters:
  value - true if the class is an interface, false otherwise.



setLiterals
public void setLiterals(IEnumeration en)(Code)



setLiterals
public void setLiterals(Vector value)(Code)
Sets the enumeration's literals that need to be updated. This may not include all the enumeration's literals, only the ones that need to be updated.
Parameters:
  value - A list of LiteralInfo objects.



setMembers
public void setMembers(Vector value)(Code)
Sets the class's members that need to be updated. This may not include all the class's members, only the ones that need to be updated.
Parameters:
  value - A list of MemberInfo objects.



setMethods
public void setMethods(Vector value)(Code)
Sets the class's methods that need to be updated. This may not include all the class's method, only the ones that need to be updated.
Parameters:
  value - A list of MethodInfo objects.



setMethodsAndMembers
public void setMethodsAndMembers(IClassifier clazz)(Code)



setNewPackage
public void setNewPackage(String value)(Code)
Sets the package name that contains the class. This is the new package name.
Parameters:
  value - The fully qualified name of the pacakge.



setOuterClass
public void setOuterClass(ClassInfo outC)(Code)
Set this class's outer class.
Parameters:
  outC - The outer class definition.



setPackage
public void setPackage(String value)(Code)
Sets the package name that contains the class. This is the original package name.
Parameters:
  value - The fully qualified name of the pacakge.



setRefInfo
protected void setRefInfo(IClassifier clazz)(Code)



setRemovedExtendedClass
public void setRemovedExtendedClass(String pName, String name)(Code)
Set the class information that is no longer the super class.
Parameters:
  pName - The package of the super class.
Parameters:
  name - The super class name.
See Also:   ClassInfo.setExtendedClass



setSuperClass
public void setSuperClass(IClassifier val)(Code)



setSuperInterfaces
protected void setSuperInterfaces(IClassifier clazz)(Code)



setSuperInterfaces
public void setSuperInterfaces(ArrayList<IClassifier> val)(Code)



setSuperclass
protected void setSuperclass(IClassifier clazz)(Code)



setSymbolFilename
public static void setSymbolFilename(IClassifier clazz, String filename)(Code)
Sets the file with which the given class should be associated. Not intended for direct use by IDE integrations.
Parameters:
  clazz -
Parameters:
  filename -



toString
public String toString()(Code)



update
public void update()(Code)
Updates the Describe symbol that represents the class.
Parameters:
  system - The describe system that is to be updated.



update
public void update(SymbolTransaction trans)(Code)
Update Describe using the specified Symbol transaction.
See Also:   SymbolTransaction
Parameters:
  trans - The transaction that represent the Describe symbol to update.



updateConstructors
protected void updateConstructors(SymbolTransaction trans)(Code)
Updates all the constructors for this symbol. The constructors that will be updated are the ConstructorInfo object that where added to the class info.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



updateEnumLiterals
protected void updateEnumLiterals(SymbolTransaction trans, int changeType)(Code)
Updates all the data members for this symbol. The members that will be updated are the MemberInfo object that where added to the class info.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



updateFilename
public String updateFilename(String filename)(Code)
Updates the IClass associated with this ClassInfo with the
Parameters:
  filename -



updateImports
protected void updateImports(EventManager manager, SymbolTransaction trans)(Code)
Updates all the imports statements for this symbol.
Parameters:
  manager - The transaction manager.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



updateInnerClasses
protected void updateInnerClasses(EventManager manager, SymbolTransaction trans)(Code)
Updates all the inner classes for this symbol. The inner classes that will be updated are the ClassInfo object that where added to the class info.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



updateInterfaces
protected void updateInterfaces(EventManager manager, SymbolTransaction trans)(Code)
Updates the interfacres that this class implements.
Parameters:
  manager - The transaction manager.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



updateMembers
protected void updateMembers(SymbolTransaction trans, int changeType)(Code)
Updates all the data members for this symbol. The members that will be updated are the MemberInfo object that where added to the class info.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



updateMethods
protected void updateMethods(SymbolTransaction trans, int changeType)(Code)
Updates all the methods for this symbol. The methods that will be updated are the MethodInfo object that where added to the class info.
Parameters:
  trans - The transaction that represents the Describe symbol.
See Also:   SymbolTransaction



Fields inherited from org.netbeans.modules.uml.integration.ide.events.ElementInfo
final public static int CREATE(Code)(Java Doc)
final public static int DELETE(Code)(Java Doc)
final public static int MODIFY(Code)(Java Doc)
protected Integer mModifiers(Code)(Java Doc)

Methods inherited from org.netbeans.modules.uml.integration.ide.events.ElementInfo
protected void assertIsIdentifier(String name) throws InvalidIdentifierException(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public String getChangeName()(Code)(Java Doc)
public int getChangeType()(Code)(Java Doc)
abstract public String getCode()(Code)(Java Doc)
public String getComment()(Code)(Java Doc)
public String getFilename()(Code)(Java Doc)
public String getMarkerID()(Code)(Java Doc)
public Integer getModifiers()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getNewName()(Code)(Java Doc)
public IProject getOwningProject()(Code)(Java Doc)
public IProject getProject()(Code)(Java Doc)
public boolean isCommentSet()(Code)(Java Doc)
public static boolean isIdentifier(String name)(Code)(Java Doc)
public boolean matches(ElementInfo el)(Code)(Java Doc)
public void setChangeType(int value)(Code)(Java Doc)
public void setComment(String value)(Code)(Java Doc)
public void setModifiers(Integer mod)(Code)(Java Doc)
public void setName(String value)(Code)(Java Doc)
public void setNewName(String value)(Code)(Java Doc)
public void syncFields()(Code)(Java Doc)
abstract public void update()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.