• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ActivationOS类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.maven.model.ActivationOS的典型用法代码示例。如果您正苦于以下问题:Java ActivationOS类的具体用法?Java ActivationOS怎么用?Java ActivationOS使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ActivationOS类属于org.apache.maven.model包,在下文中一共展示了ActivationOS类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: writeActivation

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private void writeActivation(Activation activation, String tagName, XmlSerializer serializer)
        throws java.io.IOException {
    serializer.startTag(NAMESPACE, tagName);
    flush(serializer);
    StringBuffer b = b(serializer);
    int start = b.length();
    if (activation.isActiveByDefault() != false) {
        writeValue(serializer, "activeByDefault", String.valueOf(activation.isActiveByDefault()), activation);
    }
    if (activation.getJdk() != null) {
        writeValue(serializer, "jdk", activation.getJdk(), activation);
    }
    if (activation.getOs() != null) {
        writeActivationOS((ActivationOS) activation.getOs(), "os", serializer);
    }
    if (activation.getProperty() != null) {
        writeActivationProperty((ActivationProperty) activation.getProperty(), "property", serializer);
    }
    if (activation.getFile() != null) {
        writeActivationFile((ActivationFile) activation.getFile(), "file", serializer);
    }
    serializer.endTag(NAMESPACE, tagName).flush();
    logLocation(activation, "", start, b.length());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:25,代码来源:LocationAwareMavenXpp3Writer.java


示例2: writeActivationOS

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private void writeActivationOS(ActivationOS activationOS, String tagName, XmlSerializer serializer)
        throws java.io.IOException {
    serializer.startTag(NAMESPACE, tagName);
    flush(serializer);
    StringBuffer b = b(serializer);
    int start = b.length();
    if (activationOS.getName() != null) {
        writeValue(serializer, "name", activationOS.getName(), activationOS);
    }
    if (activationOS.getFamily() != null) {
        writeValue(serializer, "family", activationOS.getFamily(), activationOS);
    }
    if (activationOS.getArch() != null) {
        writeValue(serializer, "arch", activationOS.getArch(), activationOS);
    }
    if (activationOS.getVersion() != null) {
        writeValue(serializer, "version", activationOS.getVersion(), activationOS);
    }
    serializer.endTag(NAMESPACE, tagName).flush();
    logLocation(activationOS, "", start, b.length());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:LocationAwareMavenXpp3Writer.java


示例3: visitProfileActivation

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private void visitProfileActivation( ModelVisitor visitor, Activation activation )
{
    ActivationOS os = activation.getOs();
    if ( os != null )
    {
        visitor.visitProfileActivationO( os );
        os = visitor.replaceProfileActivationO( os );
        activation.setOs( os );
    }

    ActivationProperty property = activation.getProperty();
    if ( property != null )
    {
        visitor.visitProfileActivationProperty( property );
        property = visitor.replaceProfileActivationProperty( property );
        activation.setProperty( property );
    }

    ActivationFile file = activation.getFile();
    if ( file != null )
    {
        visitor.visitProfileActivationFile( file );
        file = visitor.replaceProfileActivationFile( file );
        activation.setFile( file );
    }
}
 
开发者ID:fedora-java,项目名称:xmvn,代码行数:27,代码来源:DefaultModelProcessor.java


示例4: isActive

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
public boolean isActive( Profile profile )
{
    Activation activation = profile.getActivation();
    ActivationOS os = activation.getOs();

    boolean result = ensureAtLeastOneNonNull( os );

    if ( result && os.getFamily() != null )
    {
        result = determineFamilyMatch( os.getFamily() );
    }
    if ( result && os.getName() != null )
    {
        result = determineNameMatch( os.getName() );
    }
    if ( result && os.getArch() != null )
    {
        result = determineArchMatch( os.getArch() );
    }
    if ( result && os.getVersion() != null )
    {
        result = determineVersionMatch( os.getVersion() );
    }
    return result;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:26,代码来源:OperatingSystemProfileActivator.java


示例5: updateActivationOS

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
/**
 * Method updateActivationOS
 *
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updateActivationOS( ActivationOS value, String xmlTag, Counter counter, Element element )
{
    boolean shouldExist = value != null;
    Element root = updateElement( counter, element, xmlTag, shouldExist );
    if ( shouldExist )
    {
        Counter innerCount = new Counter( counter.getDepth() + 1 );
        findAndReplaceSimpleElement( innerCount, root, "name", value.getName(), null );
        findAndReplaceSimpleElement( innerCount, root, "family", value.getFamily(), null );
        findAndReplaceSimpleElement( innerCount, root, "arch", value.getArch(), null );
        findAndReplaceSimpleElement( innerCount, root, "version", value.getVersion(), null );
    }
}
 
开发者ID:javiersigler,项目名称:apache-maven-shade-plugin,代码行数:22,代码来源:MavenJDOMWriter.java


示例6: createModelActivation

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private org.apache.maven.model.Activation createModelActivation(
		Activation activation) {
	org.apache.maven.model.Activation modelActivation = new org.apache.maven.model.Activation();
	modelActivation.setActiveByDefault(activation.isActiveByDefault());
	if (activation.getFile() != null) {
		ActivationFile activationFile = new ActivationFile();
		activationFile.setExists(activation.getFile().getExists());
		activationFile.setMissing(activation.getFile().getMissing());
		modelActivation.setFile(activationFile);
	}
	modelActivation.setJdk(activation.getJdk());
	if (activation.getOs() != null) {
		ActivationOS os = new ActivationOS();
		os.setArch(activation.getOs().getArch());
		os.setFamily(activation.getOs().getFamily());
		os.setName(activation.getOs().getName());
		os.setVersion(activation.getOs().getVersion());
		modelActivation.setOs(os);
	}
	if (activation.getProperty() != null) {
		ActivationProperty property = new ActivationProperty();
		property.setName(activation.getProperty().getName());
		property.setValue(activation.getProperty().getValue());
		modelActivation.setProperty(property);
	}
	return modelActivation;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:28,代码来源:MavenSettings.java


示例7: convertOsActivation

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private static MavenActivationOS convertOsActivation(ActivationOS os) {
  if (os == null) {
    return null;
  }

  return new MavenActivationOS(os.getName(), os.getFamily(), os.getArch(), os.getVersion());
}
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:MavenModelUtil.java


示例8: convertToMavenActivationOs

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private static ActivationOS convertToMavenActivationOs(MavenActivationOS os) {
  if (os != null) {
    ActivationOS result = new ActivationOS();
    result.setArch(os.getArch());
    result.setFamily(os.getFamily());
    result.setName(os.getName());
    result.setVersion(os.getVersion());
    return result;
  }
  return null;
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:MavenModelUtil.java


示例9: isActive

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
public boolean isActive( Profile profile, ProfileActivationContext context, ModelProblemCollector problems )
{
    Activation activation = profile.getActivation();

    if ( activation == null )
    {
        return false;
    }

    ActivationOS os = activation.getOs();

    if ( os == null )
    {
        return false;
    }

    boolean active = ensureAtLeastOneNonNull( os );

    if ( active && os.getFamily() != null )
    {
        active = determineFamilyMatch( os.getFamily() );
    }
    if ( active && os.getName() != null )
    {
        active = determineNameMatch( os.getName() );
    }
    if ( active && os.getArch() != null )
    {
        active = determineArchMatch( os.getArch() );
    }
    if ( active && os.getVersion() != null )
    {
        active = determineVersionMatch( os.getVersion() );
    }

    return active;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:38,代码来源:OperatingSystemProfileActivator.java


示例10: replaceProfileActivationO

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
@Override
public ActivationOS replaceProfileActivationO( ActivationOS os )
{
    return os;
}
 
开发者ID:fedora-java,项目名称:xmvn,代码行数:6,代码来源:AbstractModelVisitor.java


示例11: visitProfileActivationO

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
@Override
public void visitProfileActivationO( ActivationOS os )
{
}
 
开发者ID:fedora-java,项目名称:xmvn,代码行数:5,代码来源:AbstractModelVisitor.java


示例12: ensureAtLeastOneNonNull

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
private boolean ensureAtLeastOneNonNull( ActivationOS os )
{
    return os.getArch() != null || os.getFamily() != null || os.getName() != null || os.getVersion() != null;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:5,代码来源:OperatingSystemProfileActivator.java


示例13: replaceProfileActivationO

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
ActivationOS replaceProfileActivationO( ActivationOS os ); 
开发者ID:fedora-java,项目名称:xmvn,代码行数:2,代码来源:ModelVisitor.java


示例14: visitProfileActivationO

import org.apache.maven.model.ActivationOS; //导入依赖的package包/类
void visitProfileActivationO( ActivationOS os ); 
开发者ID:fedora-java,项目名称:xmvn,代码行数:2,代码来源:ModelVisitor.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Validator类代码示例发布时间:2022-05-22
下一篇:
Java FastDtoa类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap