de.hillenbrand.jedi.ds
Class JediPackage

java.lang.Object
  extended by de.hillenbrand.jedi.ds.JediPackage
All Implemented Interfaces:
JediJavaObject, java.lang.Comparable

public class JediPackage
extends java.lang.Object
implements java.lang.Comparable, JediJavaObject


Field Summary
protected  java.io.File classDir
           
static java.lang.String DEFAULT_PACKAGE_NAME
           
protected static java.lang.String PROPERTIESFILENAME
           
protected  java.io.File sourcesDir
           
 
Constructor Summary
JediPackage(java.lang.String packagename)
           
JediPackage(java.lang.String packagename, de.hillenbrand.jedi.ds.MessageReceiver receiver)
           
 
Method Summary
 JediClass add(java.lang.String classname, JediClassType type)
           
 void cleanUp()
           
 int compareTo(java.lang.Object o)
           
 boolean delete(JediClass cl)
           
 boolean export(java.io.File directory, JediProjectSaver s, boolean javadoc)
          Exports the package.
 JediClass get(java.lang.String classname)
           
 java.lang.String[] getAnnotationList()
           
 java.lang.String getAnnotations()
           
 java.lang.String[] getCIEAList()
          Returns a list with the name of all classes, interfaces, enumerations, and annotations in the package.
 java.util.Vector<JediClass> getClasses()
           
 java.lang.String[] getClassList()
           
 int getDebugLevel()
           
 java.lang.String[] getEnumerationList()
           
 java.lang.String getFullName()
           
 java.lang.String[] getIcons()
           
 java.lang.String[] getInterfaceList()
           
 java.lang.String getJavaDoc()
           
 de.hillenbrand.swing.text.UndoableDocument getJavaDocAsDocument()
           
 JediClass getLastSelectedClass()
           
 java.lang.String getName()
           
 PackagePropertiesFrame getPropertiesFrame()
           
 de.hillenbrand.swing.text.UndoableDocument getResource(int index)
           
 java.lang.String getResourceAsPlainText(int index)
           
static java.lang.String getResourceDescription(int index)
           
 java.lang.String getResourceName()
           
static java.lang.String[] getSupportedLocales()
           
static java.lang.String[] getSupportedLocalesAsDisplayNames()
           
 boolean isChanged()
           
 boolean isEnabled()
          Returns the value of the enabled property.
static boolean isIdentifier(java.lang.String s)
           
 void markChanged()
           
 void saveChanges()
           
 void saveSource()
           
 void setAnnotations(java.lang.String s)
           
 void setDataFrom(JediPackage p)
           
 void setDebugLevel(int value)
           
 void setEnabled(boolean arg)
          Assigns the value of the enabled property.
 void setIcons(java.lang.String[] icons)
           
 void setJavaDoc(java.lang.String jdoc)
           
 void setLastSelectedClass(JediClass c)
           
 void setResource(int index, java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTIESFILENAME

protected static final java.lang.String PROPERTIESFILENAME
See Also:
Constant Field Values

DEFAULT_PACKAGE_NAME

public static final java.lang.String DEFAULT_PACKAGE_NAME
See Also:
Constant Field Values

classDir

protected java.io.File classDir

sourcesDir

protected java.io.File sourcesDir
Constructor Detail

JediPackage

public JediPackage(java.lang.String packagename)

JediPackage

public JediPackage(java.lang.String packagename,
                   de.hillenbrand.jedi.ds.MessageReceiver receiver)
Method Detail

add

public JediClass add(java.lang.String classname,
                     JediClassType type)

cleanUp

public void cleanUp()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

delete

public boolean delete(JediClass cl)

export

public boolean export(java.io.File directory,
                      JediProjectSaver s,
                      boolean javadoc)
Exports the package.


get

public JediClass get(java.lang.String classname)

getAnnotationList

public java.lang.String[] getAnnotationList()

getAnnotations

public java.lang.String getAnnotations()
Specified by:
getAnnotations in interface JediJavaObject

getCIEAList

public java.lang.String[] getCIEAList()
Returns a list with the name of all classes, interfaces, enumerations, and annotations in the package. This list will be sorted by name.


getClassList

public java.lang.String[] getClassList()

getClasses

public java.util.Vector<JediClass> getClasses()

getDebugLevel

public int getDebugLevel()

getEnumerationList

public java.lang.String[] getEnumerationList()

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface JediJavaObject

getIcons

public java.lang.String[] getIcons()

getInterfaceList

public java.lang.String[] getInterfaceList()

getJavaDoc

public java.lang.String getJavaDoc()
Specified by:
getJavaDoc in interface JediJavaObject

getJavaDocAsDocument

public de.hillenbrand.swing.text.UndoableDocument getJavaDocAsDocument()

getLastSelectedClass

public JediClass getLastSelectedClass()

getName

public java.lang.String getName()
Specified by:
getName in interface JediJavaObject

getPropertiesFrame

public PackagePropertiesFrame getPropertiesFrame()

getResource

public de.hillenbrand.swing.text.UndoableDocument getResource(int index)

getResourceAsPlainText

public java.lang.String getResourceAsPlainText(int index)

getResourceDescription

public static java.lang.String getResourceDescription(int index)

getResourceName

public java.lang.String getResourceName()

getSupportedLocales

public static java.lang.String[] getSupportedLocales()

getSupportedLocalesAsDisplayNames

public static java.lang.String[] getSupportedLocalesAsDisplayNames()

isChanged

public boolean isChanged()

isEnabled

public boolean isEnabled()
Returns the value of the enabled property.


isIdentifier

public static boolean isIdentifier(java.lang.String s)

markChanged

public void markChanged()

saveChanges

public void saveChanges()

saveSource

public void saveSource()

setAnnotations

public void setAnnotations(java.lang.String s)
Specified by:
setAnnotations in interface JediJavaObject

setDataFrom

public void setDataFrom(JediPackage p)

setDebugLevel

public void setDebugLevel(int value)

setEnabled

public void setEnabled(boolean arg)
Assigns the value of the enabled property.


setIcons

public void setIcons(java.lang.String[] icons)

setJavaDoc

public void setJavaDoc(java.lang.String jdoc)
Specified by:
setJavaDoc in interface JediJavaObject

setLastSelectedClass

public void setLastSelectedClass(JediClass c)

setResource

public void setResource(int index,
                        java.lang.String text)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object