org.apache.maven.plugin.doap
Class DoapUtil
java.lang.Object
org.apache.maven.plugin.doap.DoapUtil
public class DoapUtil
- extends java.lang.Object
Utility class for DOAP mojo.
- Since:
- 1.0
- Version:
- $Id: DoapUtil.html 815332 2012-05-01 21:25:03Z hboutemy $
- Author:
- Vincent Siveton
Field Summary |
protected static java.lang.String |
RDF_RESOURCE
RDF resource attribute |
Method Summary |
static java.util.List |
getDevelopersOrContributorsWithDeveloperRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static java.util.List |
getDevelopersOrContributorsWithDocumenterRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static java.util.List |
getDevelopersOrContributorsWithHelperRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static java.util.List |
getDevelopersOrContributorsWithMaintainerRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static java.util.List |
getDevelopersOrContributorsWithTesterRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static java.util.List |
getDevelopersOrContributorsWithTranslatorRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static java.util.List |
getDevelopersOrContributorsWithUnknownRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.List developersOrContributors)
|
static void |
writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String name,
java.lang.String value)
|
static void |
writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String name,
java.lang.String value,
java.lang.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,
java.lang.String name,
java.lang.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 java.lang.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,
java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
- Parameters:
writer
- not nullname
- not nullvalue
- could be null. In this case, the element is not written.
- Throws:
java.lang.IllegalArgumentException
- if name is null or empty
writeElement
public static void writeElement(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String name,
java.lang.String value,
java.lang.String lang)
throws java.lang.IllegalArgumentException
- Parameters:
writer
- not nullname
- not nulllang
- not nullvalue
- could be null. In this case, the element is not written.
- Throws:
java.lang.IllegalArgumentException
- if name is null or empty
writeRdfResourceElement
public static void writeRdfResourceElement(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
- Parameters:
writer
- not nullname
- not nullvalue
- could be null. In this case, the element is not written.
- Throws:
java.lang.IllegalArgumentException
- if name is null or empty
getDevelopersOrContributorsWithDeveloperRole
public static java.util.List getDevelopersOrContributorsWithDeveloperRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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 java.util.List getDevelopersOrContributorsWithDocumenterRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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 java.util.List getDevelopersOrContributorsWithHelperRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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 java.util.List getDevelopersOrContributorsWithMaintainerRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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 java.util.List getDevelopersOrContributorsWithTesterRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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 java.util.List getDevelopersOrContributorsWithTranslatorRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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 java.util.List getDevelopersOrContributorsWithUnknownRole(org.codehaus.plexus.i18n.I18N i18n,
java.util.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-2008 The Apache Software Foundation. All Rights Reserved.