org.apache.maven.plugin.doap
Class DoapUtil
java.lang.Object
org.apache.maven.plugin.doap.DoapUtil
public class DoapUtil
- extends Object
Utility class for DOAP mojo.
- Since:
- 1.0
- Version:
- $Id: DoapUtil.java 680524 2008-07-28 22:03:06Z vsiveton $
- Author:
- Vincent Siveton
Method Summary |
static List |
getDevelopersOrContributorsWithDeveloperRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static List |
getDevelopersOrContributorsWithDocumenterRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static List |
getDevelopersOrContributorsWithHelperRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static List |
getDevelopersOrContributorsWithMaintainerRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static List |
getDevelopersOrContributorsWithTesterRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static List |
getDevelopersOrContributorsWithTranslatorRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static List |
getDevelopersOrContributorsWithUnknownRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
|
static void |
writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
String name,
String value)
|
static void |
writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
String name,
String value,
String lang)
|
static void |
writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
Write comments in the DOAP file header |
static void |
writeRdfResourceElement(org.codehaus.plexus.util.xml.XMLWriter writer,
String name,
String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDF_RESOURCE
protected static final String RDF_RESOURCE
- RDF resource attribute
- See Also:
- Constant Field Values
DoapUtil
public DoapUtil()
writeHeader
public static void writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
- Write comments in the DOAP file header
- Parameters:
writer
- not null
writeElement
public static void writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
String name,
String value)
throws IllegalArgumentException
- Parameters:
writer
- not nullname
- not nullvalue
- could be null. In this case, the element is not written.
- Throws:
IllegalArgumentException
- if name is null or empty
writeElement
public static void writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
String name,
String value,
String lang)
throws IllegalArgumentException
- Parameters:
writer
- not nullname
- not nulllang
- not nullvalue
- could be null. In this case, the element is not written.
- Throws:
IllegalArgumentException
- if name is null or empty
writeRdfResourceElement
public static void writeRdfResourceElement(org.codehaus.plexus.util.xml.XMLWriter writer,
String name,
String value)
throws IllegalArgumentException
- Parameters:
writer
- not nullname
- not nullvalue
- could be null. In this case, the element is not written.
- Throws:
IllegalArgumentException
- if name is null or empty
getDevelopersOrContributorsWithDeveloperRole
public static List getDevelopersOrContributorsWithDeveloperRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have a
developer
DOAP role.
getDevelopersOrContributorsWithDocumenterRole
public static List getDevelopersOrContributorsWithDocumenterRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have a
documenter
DOAP role.
getDevelopersOrContributorsWithHelperRole
public static List getDevelopersOrContributorsWithHelperRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have an
helper
DOAP role.
getDevelopersOrContributorsWithMaintainerRole
public static List getDevelopersOrContributorsWithMaintainerRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have a
maintainer
DOAP role.
getDevelopersOrContributorsWithTesterRole
public static List getDevelopersOrContributorsWithTesterRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have a
tester
DOAP role.
getDevelopersOrContributorsWithTranslatorRole
public static List getDevelopersOrContributorsWithTranslatorRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have a
translator
DOAP role.
getDevelopersOrContributorsWithUnknownRole
public static List getDevelopersOrContributorsWithUnknownRole(org.codehaus.plexus.i18n.I18N i18n,
List developersOrContributors)
- Parameters:
i18n
- the internationalization componentdevelopersOrContributors
- list of Developer
/Contributor
- Returns:
- a none null list of developers or contributors which have an
unknown
DOAP role.
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.