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

java.lang.Object
  extended by org.apache.maven.plugin.doap.options.ASFExtOptionsUtil

public class ASFExtOptionsUtil
extends Object

Utility class for ASFExtOptions class.

Since:
1.1
Version:
$Id: ASFExtOptionsUtil.java 1055064 2011-01-04 14:42:56Z vsiveton $
Author:
Vincent Siveton

Field Summary
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
ASFExtOptionsUtil()
           
 
Method Summary
static org.apache.maven.model.Developer findChair(List<org.apache.maven.model.Developer> developers)
          Find the chair man of the project.
static List<org.apache.maven.model.Developer> findPMCMembers(List<org.apache.maven.model.Developer> developers)
          Find the list of PMC members of the project.
static String getCategorySupportedByASF(String category)
           
static String getProgrammingLanguageSupportedByASF(String programmingLanguage)
           
static boolean isASFProject(org.apache.maven.project.MavenProject project)
          Try to find if the given project is hosted at Apache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

ASFExtOptionsUtil

public ASFExtOptionsUtil()
Method Detail

getCategorySupportedByASF

public static String getCategorySupportedByASF(String category)
Parameters:
category - not null
Returns:
if the given category is supported by ASF (correctly formatted) or null if not found.
See Also:
http://projects.apache.org/categories.html, CATEGORIES

getProgrammingLanguageSupportedByASF

public static String getProgrammingLanguageSupportedByASF(String programmingLanguage)
Parameters:
programmingLanguage - not null
Returns:
the given programming language supported by ASF (correctly formatted) or null if not found.
See Also:
http://projects.apache.org/languages.html, PROGRAMMING_LANGUAGES

findChair

public static org.apache.maven.model.Developer findChair(List<org.apache.maven.model.Developer> 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<org.apache.maven.model.Developer> findPMCMembers(List<org.apache.maven.model.Developer> 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.

isASFProject

public static boolean isASFProject(org.apache.maven.project.MavenProject project)
Try to find if the given project is hosted at Apache.

Parameters:
project - not null
Returns:
true if the SCM url, distribution management url, project url or organization url is hosted in the Apache domain name, false otherwise.
Since:
1.1
See Also:
APACHE_DOMAIN_NAME


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