Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jext.project
Class AbstractProject  view AbstractProject download AbstractProject.java

java.lang.Object
  extended byorg.jext.project.AbstractProject
All Implemented Interfaces:
Project
Direct Known Subclasses:
DefaultProjectManager.DefaultProject

public abstract class AbstractProject
extends java.lang.Object
implements Project

Defines a basic project created using Jext.


Field Summary
protected  java.util.Map attributes
           
protected  AbstractProjectManager manager
           
protected  java.lang.String name
           
 
Constructor Summary
protected AbstractProject(java.lang.String name, AbstractProjectManager manager)
          Create a new AbstractProject.
 
Method Summary
protected  void fireProjectEvent(int eventType)
          Fire the specified ProjectEvent for this AbstractProject.
protected  void fireProjectEvent(int eventType, java.lang.Object target)
          Fire the specified ProjectEvent for this AbstractProject.
 java.lang.Object getAttribute(java.lang.String key)
          Returns the value of the specified attribute for this AbstractProject.
 java.lang.Object getAttribute(java.lang.String key, java.lang.Object defaultValue)
          Returns the value of the specified attribute for this AbstractProject, returning the specified default value if no such attribute exists.
 java.lang.String getAttributeAsString(java.lang.String key)
          Returns the String value of the specified attribute for this AbstractProject.
 java.lang.String getName()
          Returns the name of this AbstractProject.
 void setAttribute(java.lang.String key, java.lang.Object value)
          Sets the specified attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jext.project.Project
closeFile, getFiles, getSelectedFile, openFile, selectFile
 

Field Detail

attributes

protected final java.util.Map attributes

manager

protected final AbstractProjectManager manager

name

protected final java.lang.String name
Constructor Detail

AbstractProject

protected AbstractProject(java.lang.String name,
                          AbstractProjectManager manager)
Create a new AbstractProject.

Method Detail

getName

public java.lang.String getName()
Returns the name of this AbstractProject.

Specified by:
getName in interface Project

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Returns the value of the specified attribute for this AbstractProject.

Specified by:
getAttribute in interface Project

getAttribute

public java.lang.Object getAttribute(java.lang.String key,
                                     java.lang.Object defaultValue)
Returns the value of the specified attribute for this AbstractProject, returning the specified default value if no such attribute exists.

Specified by:
getAttribute in interface Project

getAttributeAsString

public java.lang.String getAttributeAsString(java.lang.String key)
Returns the String value of the specified attribute for this AbstractProject.

Specified by:
getAttributeAsString in interface Project

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Sets the specified attribute.

Specified by:
setAttribute in interface Project

fireProjectEvent

protected void fireProjectEvent(int eventType)
Fire the specified ProjectEvent for this AbstractProject. This


fireProjectEvent

protected void fireProjectEvent(int eventType,
                                java.lang.Object target)
Fire the specified ProjectEvent for this AbstractProject. This