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

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

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

Organization.setLocation介绍

暂无

代码示例

代码示例来源: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: apache/maven

InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
organization.setLocation( "", _location );
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
    organization.setLocation( "name", _location );
    organization.setName( interpolatedTrimmed( parser.nextText(), "name" ) );
    organization.setLocation( "url", _location );
    organization.setUrl( interpolatedTrimmed( parser.nextText(), "url" ) );

代码示例来源: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 );
    }
  }
}

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

InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
organization.setLocation( "", _location );
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
    organization.setLocation( "name", _location );
    organization.setName( getTrimmedValue( parser.nextText() ) );
    organization.setLocation( "url", _location );
    organization.setUrl( getTrimmedValue( parser.nextText() ) );

相关文章