org.apache.maven.model.Organization.getLocation()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中org.apache.maven.model.Organization.getLocation()方法的一些代码示例,展示了Organization.getLocation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Organization.getLocation()方法的具体详情如下:
包路径:org.apache.maven.model.Organization
类名称:Organization
方法名:getLocation

Organization.getLocation介绍

暂无

代码示例

代码示例来源:origin: apache/maven

protected void mergeOrganization_Name( Organization target, Organization 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" ) );
    }
  }
}

代码示例来源:origin: apache/maven

protected void mergeOrganization_Url( Organization target, Organization 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" ) );
    }
  }
}

代码示例来源:origin: apache/maven

@Override
protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  Organization src = source.getOrganization();
  if ( src != null )
  {
    Organization tgt = target.getOrganization();
    if ( tgt == null )
    {
      tgt = new Organization();
      tgt.setLocation( "", src.getLocation( "" ) );
      target.setOrganization( tgt );
      mergeOrganization( tgt, src, sourceDominant, context );
    }
  }
}

代码示例来源:origin: io.tesla.maven/maven-model

protected void mergeOrganization_Url( Organization target, Organization 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" ) );
    }
  }
}

代码示例来源:origin: io.tesla.maven/maven-model

protected void mergeOrganization_Name( Organization target, Organization 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" ) );
    }
  }
}

代码示例来源:origin: org.apache.maven/maven-model-builder

@Override
protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  Organization src = source.getOrganization();
  if ( src != null )
  {
    Organization tgt = target.getOrganization();
    if ( tgt == null )
    {
      tgt = new Organization();
      tgt.setLocation( "", src.getLocation( "" ) );
      target.setOrganization( tgt );
      mergeOrganization( tgt, src, sourceDominant, context );
    }
  }
}

相关文章