Package gov.nist.checklists.xccdf.x11

Examples of gov.nist.checklists.xccdf.x11.FactType


      // Build a map of elements using the selector as the key
      do {
        LiteralValue literal;
        XmlObject obj = cursor.getObject();
        if (obj instanceof SelStringType) {
          SelStringType node = (SelStringType)obj;
          literal = new DefaultLiteralValue(
              node.getSelector(),
              Collections.singletonList(node.getStringValue()),
              false);
          found = true;
        } else {
          if (!found) {
            continue;
View Full Code Here


            }

            do {
                XmlObject xmlObject = cursor.getObject();
                if (SelectableItemType.type.isAssignableFrom(xmlObject.schemaType())) {
                    SelectableItemType item = (SelectableItemType) xmlObject;

                    if (item instanceof GroupType) {
                        GroupType node = (GroupType) item;
                  GroupImpl group = new GroupImpl(node, this);
                  addGroupInternal(group);
View Full Code Here

            }

            do {
                XmlObject xmlObject = cursor.getObject();
                if (SelectableItemType.type.isAssignableFrom(xmlObject.schemaType())) {
                    SelectableItemType item = (SelectableItemType) xmlObject;

                    if (item instanceof GroupType) {
                        GroupType node = (GroupType) item;
                  GroupImpl group = new GroupImpl(node, this);
                  addGroupInternal(group);
View Full Code Here

    xmlString.setStringValue(targetAddress);
  }

  public void appendFacts(List<Fact> facts) {
    if (!facts.isEmpty()) {
      TargetFactsType factsType = data.addNewTargetFacts();
      for (Fact fact : facts) {
        FactType factType = factsType.addNewFact();
        factType.setName(fact.getName());
        factType.setType(mapValueType(fact.getType()));
        factType.setStringValue(fact.getValue());
      }
    }
View Full Code Here

  private final XmlObject instance;
  private final TestResultType data;

  public ResultBuilderImpl(String benchmarkId, String benchmarkVersion, URI uri) {
    TestResultDocument doc = TestResultDocument.Factory.newInstance();
    instance = doc;
    data = doc.addNewTestResult();
    data.setId(generateTestResultId(benchmarkId));
    data.setVersion(benchmarkVersion);
    TestResultType.Benchmark node = data.addNewBenchmark();
    node.setHref(uri.toASCIIString());
  }
View Full Code Here

  public void setStartTime(Calendar startTime) {
    data.setStartTime(startTime);
  }

  public void setTitle(String text, String lang) {
    TextType node = data.addNewTitle();
    node.setStringValue(text);
    node.setLang(lang);
  }
View Full Code Here

    idents = parseIdents(data);
    parseCheckingUnits(data);
  }

  private static Version parseVersion(RuleType data) {
    VersionType version = data.getVersion();
    Version retval = null;
    if (version != null) {
      retval = new VersionImpl(version);
    }
    return retval;
View Full Code Here

  public void appendFacts(List<Fact> facts) {
    if (!facts.isEmpty()) {
      TargetFactsType factsType = data.addNewTargetFacts();
      for (Fact fact : facts) {
        FactType factType = factsType.addNewFact();
        factType.setName(fact.getName());
        factType.setType(mapValueType(fact.getType()));
        factType.setStringValue(fact.getValue());
      }
    }
  }
View Full Code Here

TOP

Related Classes of gov.nist.checklists.xccdf.x11.FactType

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.