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

x33g5p2x  于2022-01-26 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(229)

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

Parent.setLocation介绍

暂无

代码示例

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

  1. protected void mergeParent_RelativePath( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getRelativePath();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getRelativePath() == null )
  8. {
  9. target.setRelativePath( src );
  10. target.setLocation( "relativePath", source.getLocation( "relativePath" ) );
  11. }
  12. }
  13. }

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

  1. protected void mergeParent_Version( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getVersion();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getVersion() == null )
  8. {
  9. target.setVersion( src );
  10. target.setLocation( "version", source.getLocation( "version" ) );
  11. }
  12. }
  13. }

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

  1. protected void mergeParent_GroupId( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getGroupId();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getGroupId() == null )
  8. {
  9. target.setGroupId( src );
  10. target.setLocation( "groupId", source.getLocation( "groupId" ) );
  11. }
  12. }
  13. }

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

  1. protected void mergeParent_ArtifactId( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getArtifactId();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getArtifactId() == null )
  8. {
  9. target.setArtifactId( src );
  10. target.setLocation( "artifactId", source.getLocation( "artifactId" ) );
  11. }
  12. }
  13. }

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

  1. InputLocation _location;
  2. _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
  3. parent.setLocation( "", _location );
  4. for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
  5. parent.setLocation( "groupId", _location );
  6. parent.setGroupId( interpolatedTrimmed( parser.nextText(), "groupId" ) );
  7. parent.setLocation( "artifactId", _location );
  8. parent.setArtifactId( interpolatedTrimmed( parser.nextText(), "artifactId" ) );
  9. parent.setLocation( "version", _location );
  10. parent.setVersion( interpolatedTrimmed( parser.nextText(), "version" ) );
  11. parent.setLocation( "relativePath", _location );
  12. parent.setRelativePath( interpolatedTrimmed( parser.nextText(), "relativePath" ) );

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

  1. protected void mergeParent_GroupId( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getGroupId();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getGroupId() == null )
  8. {
  9. target.setGroupId( src );
  10. target.setLocation( "groupId", source.getLocation( "groupId" ) );
  11. }
  12. }
  13. }

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

  1. protected void mergeParent_Version( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getVersion();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getVersion() == null )
  8. {
  9. target.setVersion( src );
  10. target.setLocation( "version", source.getLocation( "version" ) );
  11. }
  12. }
  13. }

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

  1. protected void mergeParent_ArtifactId( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getArtifactId();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getArtifactId() == null )
  8. {
  9. target.setArtifactId( src );
  10. target.setLocation( "artifactId", source.getLocation( "artifactId" ) );
  11. }
  12. }
  13. }

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

  1. protected void mergeParent_RelativePath( Parent target, Parent source, boolean sourceDominant,
  2. Map<Object, Object> context )
  3. {
  4. String src = source.getRelativePath();
  5. if ( src != null )
  6. {
  7. if ( sourceDominant || target.getRelativePath() == null )
  8. {
  9. target.setRelativePath( src );
  10. target.setLocation( "relativePath", source.getLocation( "relativePath" ) );
  11. }
  12. }
  13. }

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

  1. InputLocation _location;
  2. _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
  3. parent.setLocation( "", _location );
  4. for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
  5. parent.setLocation( "groupId", _location );
  6. parent.setGroupId( getTrimmedValue( parser.nextText() ) );
  7. parent.setLocation( "artifactId", _location );
  8. parent.setArtifactId( getTrimmedValue( parser.nextText() ) );
  9. parent.setLocation( "version", _location );
  10. parent.setVersion( getTrimmedValue( parser.nextText() ) );
  11. parent.setLocation( "relativePath", _location );
  12. parent.setRelativePath( getTrimmedValue( parser.nextText() ) );

相关文章