当前位置: 首页>>代码示例>>Java>>正文


Java Contributor.setLocation方法代码示例

本文整理汇总了Java中org.apache.maven.model.Contributor.setLocation方法的典型用法代码示例。如果您正苦于以下问题:Java Contributor.setLocation方法的具体用法?Java Contributor.setLocation怎么用?Java Contributor.setLocation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.maven.model.Contributor的用法示例。


在下文中一共展示了Contributor.setLocation方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: mergeContributor_Properties

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Properties( Contributor target, Contributor source, boolean sourceDominant,
                                            Map<Object, Object> context )
{
    Properties merged = new Properties();
    if ( sourceDominant )
    {
        merged.putAll( target.getProperties() );
        merged.putAll( source.getProperties() );
    }
    else
    {
        merged.putAll( source.getProperties() );
        merged.putAll( target.getProperties() );
    }
    target.setProperties( merged );
    target.setLocation( "properties", InputLocation.merge( target.getLocation( "properties" ),
                                                           source.getLocation( "properties" ), sourceDominant ) );
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:19,代码来源:ModelMerger.java

示例2: mergeContributor_Name

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Name( Contributor target, Contributor source, boolean sourceDominant,
                                      Map<Object, Object> context )
{
    String src = source.getName();
    if ( src != null )
    {
        if ( sourceDominant || target.getName() == null )
        {
            target.setName( src );
            target.setLocation( "name", source.getLocation( "name" ) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:14,代码来源:ModelMerger.java

示例3: mergeContributor_Email

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Email( Contributor target, Contributor source, boolean sourceDominant,
                                       Map<Object, Object> context )
{
    String src = source.getEmail();
    if ( src != null )
    {
        if ( sourceDominant || target.getEmail() == null )
        {
            target.setEmail( src );
            target.setLocation( "email", source.getLocation( "email" ) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:14,代码来源:ModelMerger.java

示例4: mergeContributor_Url

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Url( Contributor target, Contributor source, boolean sourceDominant,
                                     Map<Object, Object> context )
{
    String src = source.getUrl();
    if ( src != null )
    {
        if ( sourceDominant || target.getUrl() == null )
        {
            target.setUrl( src );
            target.setLocation( "url", source.getLocation( "url" ) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:14,代码来源:ModelMerger.java

示例5: mergeContributor_Organization

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Organization( Contributor target, Contributor source, boolean sourceDominant,
                                              Map<Object, Object> context )
{
    String src = source.getOrganization();
    if ( src != null )
    {
        if ( sourceDominant || target.getOrganization() == null )
        {
            target.setOrganization( src );
            target.setLocation( "organization", source.getLocation( "organization" ) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:14,代码来源:ModelMerger.java

示例6: mergeContributor_OrganizationUrl

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_OrganizationUrl( Contributor target, Contributor source, boolean sourceDominant,
                                                 Map<Object, Object> context )
{
    String src = source.getOrganizationUrl();
    if ( src != null )
    {
        if ( sourceDominant || target.getOrganizationUrl() == null )
        {
            target.setOrganizationUrl( src );
            target.setLocation( "organizationUrl", source.getLocation( "organizationUrl" ) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:14,代码来源:ModelMerger.java

示例7: mergeContributor_Timezone

import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Timezone( Contributor target, Contributor source, boolean sourceDominant,
                                          Map<Object, Object> context )
{
    String src = source.getTimezone();
    if ( src != null )
    {
        if ( sourceDominant || target.getTimezone() == null )
        {
            target.setTimezone( src );
            target.setLocation( "timezone", source.getLocation( "timezone" ) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:14,代码来源:ModelMerger.java


注:本文中的org.apache.maven.model.Contributor.setLocation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。