Package gov.nist.checklists.xccdf.x12

Examples of gov.nist.checklists.xccdf.x12.TextType


            }

            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

    } catch (XmlException e) {
      throw new RuntimeException(e);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    TailoringReferenceType tailoringFile = data.addNewTailoringFile();
    tailoringFile.setId(node.getId());
    tailoringFile.setHref(tailoring.getUri().toASCIIString());
    tailoringFile.setVersion(node.getVersion().getStringValue());
    tailoringFile.setTime(node.getVersion().getTime());
  }
View Full Code Here

    instance = doc;
    data = doc.getBenchmark().addNewTestResult();
  }

  public void appendTailoring(SourceContext tailoring) {
    TailoringType node;
    try {
      node = tailoring.getSourceContent().getXmlBeansInstance().getXmlObjectAsType();
    } catch (XmlException e) {
      throw new RuntimeException(e);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    TailoringReferenceType tailoringFile = data.addNewTailoringFile();
    tailoringFile.setId(node.getId());
    tailoringFile.setHref(tailoring.getUri().toASCIIString());
    tailoringFile.setVersion(node.getVersion().getStringValue());
    tailoringFile.setTime(node.getVersion().getTime());
  }
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);
    BenchmarkReferenceType node = data.addNewBenchmark();
    node.setId(benchmarkId);
    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

TOP

Related Classes of gov.nist.checklists.xccdf.x12.TextType

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.