net.sf.ant4eclipse.model.project.cproject
Class CProjectRole

java.lang.Object
  extended by net.sf.ant4eclipse.model.project.AbstractProjectRole
      extended by net.sf.ant4eclipse.model.project.cproject.CProjectRole

public class CProjectRole
extends AbstractProjectRole

C specific informations.


Field Summary
static java.lang.String CCNATURE
           
static java.lang.String CNATURE
           
static java.lang.String NAME
           
 
Constructor Summary
CProjectRole()
          Initializes this project role.
 
Method Summary
 void addCPathEntry(CPathEntry newentry)
          Adds the supplied C/C++ path entry to this role.
 boolean equals(java.lang.Object obj)
          
 CPathEntry[] getCPathEntries()
          Returns a list of all C/C++ path entries currently registered with an eclipse project.
 int hashCode()
          
 boolean isCpp()
          Returns true if this project is a C++ project.
 void setCpp(boolean cpp)
          (Un)Marks this project as a C++ project.
 
Methods inherited from class net.sf.ant4eclipse.model.project.AbstractProjectRole
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CNATURE

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

CCNATURE

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

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

CProjectRole

public CProjectRole()
Initializes this project role.

Method Detail

setCpp

public void setCpp(boolean cpp)
(Un)Marks this project as a C++ project.

Parameters:
cpp - true <=> This project will be marked as a C++ project.

isCpp

public boolean isCpp()
Returns true if this project is a C++ project.

Returns:
true <=> This project is a C++ project.

addCPathEntry

public void addCPathEntry(CPathEntry newentry)
Adds the supplied C/C++ path entry to this role.

Parameters:
newentry - The new path entry that shall be added.

getCPathEntries

public CPathEntry[] getCPathEntries()
Returns a list of all C/C++ path entries currently registered with an eclipse project.

Returns:
A list of all C/C++ path entries. Not null.

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractProjectRole

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class AbstractProjectRole