org.apache.maven.plugin.doap.options
Class ASFExtOptions

java.lang.Object
  extended by org.apache.maven.plugin.doap.options.ASFExtOptions
All Implemented Interfaces:
Serializable

public class ASFExtOptions
extends Object
implements Serializable

Specific ASF DOAP parameters, i.e. ASF options which make DOAP file ASF compliant.

Version:
$Revision$ $Date$
See Also:
http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/asfext, http://projects.apache.org/docs/pmc.html, http://projects.apache.org/docs/standards.html, Serialized Form

Field Summary
static String ASFEXT_NAMESPACE
          The ASF ext namespace.
static String BUILD_MANAGEMENT_CATEGORY
          Projects related to building/maintaining source code/websites.
static String C_PROGRAMMING_LANGUAGE
          C or C++ Programming Language.
static String[] CATEGORIES
          All categories supported by ASF
static String CATEGORY_RESOURCE
          The ASF category resource.
static String DATABASE_CATEGORY
          Projects related to databases.
static String HTTP_CATEGORY
          Related to the HyperText Transfer Protocol.
static String HTTP_MODULES_CATEGORY
          Modules designed for use by the Apache HTTP Server.
static String JAVA_PROGRAMMING_LANGUAGE
          Java Programming Language and all its components.
static String LIBRARY_CATEGORY
          A library meant to be used by other applications.
static String MAIL_CATEGORY
          Servers or applications related to internet mail protocols.
static String NETWORK_CLIENT_CATEGORY
          Anything that acts as a client across a network.
static String NETWORK_SERVER_CATEGORY
          Anything that acts as a server across a network.
static String PERL_PROGRAMMING_LANGUAGE
          Perl Programming Language.
static String[] PROGRAMMING_LANGUAGES
          All Programming Languages supported by ASF
static String PYTHON_PROGRAMMING_LANGUAGE
          Python Programming Language.
static String SVG_PROGRAMMING_LANGUAGE
          Scalable Vector Graphic Programming Language.
static String TCL_PROGRAMMING_LANGUAGE
          Tcl Programming Language.
static String TESTING_CATEGORY
          Software designed to test or verify other software.
static String WEB_FRAMEWORK_CATEGORY
          Unifying frameworks for website development.
static String XML_CATEGORY
          Software based on XML technologies.
 
Constructor Summary
ASFExtOptions()
           
 
Method Summary
 void addStandard(Standard standard)
          Method addStandard.
 boolean equals(Object other)
          Method equals.
static org.apache.maven.model.Developer findChair(List developers)
          Find the chair man of the project.
static List findPMCMembers(List developers)
          Find the list of PMC members of the project.
 String getChair()
          Get this should contain the name of the current PMC chairperson.
 String getCharter()
          Get every PMC is created by a board resolution with a specific charter.
 String getName()
          Get the name of the PMC, including the 'Apache ', e.g.
 String getPmc()
          Get the top level element within a file.
 List getStandards()
          Method getStandards.
 int hashCode()
          Method hashCode.
static boolean isCategorySupportedByASF(String category)
           
 boolean isIncluded()
          Get flag to use or not the ASF extension in the generated DOAP.
static boolean isProgrammingLanguageSupportedByASF(String programmingLanguage)
           
 void removeStandard(Standard standard)
          Method removeStandard.
 void setChair(String chair)
          Set this should contain the name of the current PMC chairperson.
 void setCharter(String charter)
          Set every PMC is created by a board resolution with a specific charter.
 void setIncluded(boolean included)
          Set flag to use or not the ASF extension in the generated DOAP.
 void setName(String name)
          Set the name of the PMC, including the 'Apache ', e.g.
 void setPmc(String pmc)
          Set the top level element within a file.
 void setStandards(List standards)
          Set list of Standard object.
 String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ASFEXT_NAMESPACE

public static final String ASFEXT_NAMESPACE
The ASF ext namespace.

See Also:
Constant Field Values

CATEGORY_RESOURCE

public static final String CATEGORY_RESOURCE
The ASF category resource.

See Also:
http://projects.apache.org/guidelines.html, Constant Field Values

BUILD_MANAGEMENT_CATEGORY

public static final String BUILD_MANAGEMENT_CATEGORY
Projects related to building/maintaining source code/websites.

See Also:
Constant Field Values

DATABASE_CATEGORY

public static final String DATABASE_CATEGORY
Projects related to databases.

See Also:
Constant Field Values

HTTP_CATEGORY

public static final String HTTP_CATEGORY
Related to the HyperText Transfer Protocol.

See Also:
Constant Field Values

HTTP_MODULES_CATEGORY

public static final String HTTP_MODULES_CATEGORY
Modules designed for use by the Apache HTTP Server.

See Also:
Constant Field Values

LIBRARY_CATEGORY

public static final String LIBRARY_CATEGORY
A library meant to be used by other applications.

See Also:
Constant Field Values

MAIL_CATEGORY

public static final String MAIL_CATEGORY
Servers or applications related to internet mail protocols.

See Also:
Constant Field Values

NETWORK_CLIENT_CATEGORY

public static final String NETWORK_CLIENT_CATEGORY
Anything that acts as a client across a network.

See Also:
Constant Field Values

NETWORK_SERVER_CATEGORY

public static final String NETWORK_SERVER_CATEGORY
Anything that acts as a server across a network.

See Also:
Constant Field Values

TESTING_CATEGORY

public static final String TESTING_CATEGORY
Software designed to test or verify other software.

See Also:
Constant Field Values

WEB_FRAMEWORK_CATEGORY

public static final String WEB_FRAMEWORK_CATEGORY
Unifying frameworks for website development.

See Also:
Constant Field Values

XML_CATEGORY

public static final String XML_CATEGORY
Software based on XML technologies.

See Also:
Constant Field Values

CATEGORIES

public static final String[] CATEGORIES
All categories supported by ASF


C_PROGRAMMING_LANGUAGE

public static final String C_PROGRAMMING_LANGUAGE
C or C++ Programming Language.

See Also:
Constant Field Values

JAVA_PROGRAMMING_LANGUAGE

public static final String JAVA_PROGRAMMING_LANGUAGE
Java Programming Language and all its components.

See Also:
Constant Field Values

PERL_PROGRAMMING_LANGUAGE

public static final String PERL_PROGRAMMING_LANGUAGE
Perl Programming Language.

See Also:
Constant Field Values

PYTHON_PROGRAMMING_LANGUAGE

public static final String PYTHON_PROGRAMMING_LANGUAGE
Python Programming Language.

See Also:
Constant Field Values

SVG_PROGRAMMING_LANGUAGE

public static final String SVG_PROGRAMMING_LANGUAGE
Scalable Vector Graphic Programming Language.

See Also:
Constant Field Values

TCL_PROGRAMMING_LANGUAGE

public static final String TCL_PROGRAMMING_LANGUAGE
Tcl Programming Language.

See Also:
Constant Field Values

PROGRAMMING_LANGUAGES

public static final String[] PROGRAMMING_LANGUAGES
All Programming Languages supported by ASF

Constructor Detail

ASFExtOptions

public ASFExtOptions()
Method Detail

addStandard

public void addStandard(Standard standard)
Method addStandard.

Parameters:
standard -

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getChair

public String getChair()
Get this should contain the name of the current PMC chairperson. Optional.

Returns:
String
See Also:
http://projects.apache.org/docs/pmc.html

getCharter

public String getCharter()
Get every PMC is created by a board resolution with a specific charter. That charter should be listed here as it gives the focus and scope of the PMC. Optional.

Returns:
String
See Also:
http://projects.apache.org/docs/pmc.html

getName

public String getName()
Get the name of the PMC, including the 'Apache ', e.g. 'Apache Forrest'. Optional will be discovered from POM.

Returns:
String
See Also:
http://projects.apache.org/docs/pmc.html

getPmc

public String getPmc()
Get the top level element within a file. Optional will be discovered from POM.

Returns:
String
See Also:
http://projects.apache.org/docs/pmc.html

getStandards

public List getStandards()
Method getStandards.

Returns:
List

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

isIncluded

public boolean isIncluded()
Get flag to use or not the ASF extension in the generated DOAP. Required.

Returns:
boolean

removeStandard

public void removeStandard(Standard standard)
Method removeStandard.

Parameters:
standard -

setChair

public void setChair(String chair)
Set this should contain the name of the current PMC chairperson. Optional.

Parameters:
chair -
See Also:
http://projects.apache.org/docs/pmc.html

setCharter

public void setCharter(String charter)
Set every PMC is created by a board resolution with a specific charter. That charter should be listed here as it gives the focus and scope of the PMC. Optional.

Parameters:
charter -
See Also:
http://projects.apache.org/docs/pmc.html

setIncluded

public void setIncluded(boolean included)
Set flag to use or not the ASF extension in the generated DOAP. Required.

Parameters:
included -

setName

public void setName(String name)
Set the name of the PMC, including the 'Apache ', e.g. 'Apache Forrest'. Optional will be discovered from POM.

Parameters:
name -
See Also:
http://projects.apache.org/docs/pmc.html

setPmc

public void setPmc(String pmc)
Set the top level element within a file. Optional will be discovered from POM.

Parameters:
pmc -
See Also:
http://projects.apache.org/docs/pmc.html

setStandards

public void setStandards(List standards)
Set list of Standard object. Optional.

Parameters:
standards -
See Also:
http://projects.apache.org/docs/standards.html

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String

isCategorySupportedByASF

public static boolean isCategorySupportedByASF(String category)
Parameters:
category - not null
Returns:
true if the given category is supported by ASF.
See Also:
http://projects.apache.org/categories.html, CATEGORIES

isProgrammingLanguageSupportedByASF

public static boolean isProgrammingLanguageSupportedByASF(String programmingLanguage)
Parameters:
programmingLanguage - not null
Returns:
true if the given programming language is supported by ASF.
See Also:
http://projects.apache.org/languages.html, PROGRAMMING_LANGUAGES

findChair

public static org.apache.maven.model.Developer findChair(List developers)
Find the chair man of the project. The role of the developer should contain chair.

Parameters:
developers - list of Developer
Returns:
a Developer or null if not found.

findPMCMembers

public static List findPMCMembers(List developers)
Find the list of PMC members of the project. The role of each developer should contain pmc.

Parameters:
developers - list of Developer
Returns:
a not null list of Developer.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.