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

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

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

Organization.setName介绍

[英]Set the full name of the organization.
[中]设置组织的全名。

代码示例

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

public static Organization cloneOrganization( Organization src )
{
  if ( src == null )
  {
    return null;
  }
  
  Organization result = new Organization();
  
  result.setName( src.getName() );
  result.setUrl( src.getUrl() );
  
  return result;
}

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

organization.setName( interpolatedTrimmed( parser.nextText(), "name" ) );

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

organization.setName( interpolatedTrimmed( parser.nextText(), "name" ) );

代码示例来源:origin: takari/polyglot-maven

organization.setName( getTrimmedValue( value ) );

代码示例来源:origin: stackoverflow.com

public Organization getOrCreateOrganization(String name) {
  Criteria crit = session.createCriteria(Organization.class);
  crit.add(Restrictions.eq("name", name));
  Organization result = (Organization)crit.uniqueResult();
  if (result == null) {
    result = new Organization();
    result.setName(name);
    session.save(result);
  }
  return result;
}

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

organization.setName( getTrimmedValue( xmlStreamReader.getElementText()) );

代码示例来源:origin: stackoverflow.com

@Path("{id}")
@PUT
@Consumes("application/json")
@Produces("application/json")
public Organization edit(OrganizationDTO dto,
           @PathParam("id") Long id) {
 // lookup entity from database
 Organization org = entityManager.find( Organization.class, entity.getId() );
 // map changable values to the entity
 org.setName( dto.getName() );
 org.setDescription( dto.getDescription() );
 org.setUser( entityManager.find( User.class, userId ) );
 dto.setUser( org.getUser() );
 // merge changes
 entityManager.merge( org );
 // return dto
 return dto;
}

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

organization.setName( getTrimmedValue( childElement.getText() ) );

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

private Organization translateOrganization( org.apache.maven.model.v3_0_0.Organization v3Organization )
{
  Organization organization = null;
  if ( v3Organization != null )
  {
    organization = new Organization();
    organization.setName( v3Organization.getName() );
    organization.setUrl( v3Organization.getUrl() );
    if ( StringUtils.isNotEmpty( v3Organization.getLogo() ) )
    {
      warnings.add( "Ignoring <organization><logo/></organization>. It is not supported in v4 POMs." );
    }
  }
  return organization;
}

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

organization.setName( getTrimmedValue( parser.nextText()) );

代码示例来源:origin: org.apache.maven.shared/maven-app-configuration-web

companyModel.getOrganization().setName( project.getOrganization().getName() );

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

organization.setName( getTrimmedValue( parser.nextText() ) );

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

organization.setName( getTrimmedValue( parser.nextText() ) );

代码示例来源:origin: bsorrentino/maven-confluence-plugin

organization.setName( "" );

相关文章