Package org.mitre.cpe.language.x20

Examples of org.mitre.cpe.language.x20.CPEFactRefType


    return new LogicalTestImpl(node, getPlatform());
  }

  @Override
  protected CPEFactReferenceImpl newCPEFactReference(CPEName name) throws ParseException {
    CPEFactRefType node = data.addNewFactRef();
    node.setName(name.toString());
    return new CPEFactReferenceImpl(node);
  }
View Full Code Here


  public void setOperator(Operator op) {
    data.setOperator(mapOperator(op));
  }

  protected LogicalTestImpl newLogicalTest() {
    LogicalTestType node = data.addNewLogicalTest();
    return new LogicalTestImpl(node, getPlatform());
  }
View Full Code Here

      registerPlatform(platform);
    }
  }

  protected PlatformImpl newPlatform(String id) {
    PlatformType node = data.addNewPlatform();
    node.setId(id);

    // Platforms must have an associated logical test
    node.addNewLogicalTest();

    // Create the class instance
    return new PlatformImpl(this, node);
  }
View Full Code Here

TOP

Related Classes of org.mitre.cpe.language.x20.CPEFactRefType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.