Package scap.check

Examples of scap.check.CheckContentRef


      String name = checkType.getStringValue();
      String system = checkType.getSystem();

      // href = helper.resolveHref(href);

      CheckContentRef ref = new CheckContentRef(href, name);

      DefaultCheck<CheckExport> check = new DefaultCheck<CheckExport>(
          dictionaryContext, system, Collections.singletonList(ref));

      // No imports or exports
View Full Code Here


    }

    SourceContext context = getPlatform().getPlatformSpecification().getSourceContext();
    for (CheckFactRefType node : data.getCheckFactRefList()) {
      // Build the contentRef
      CheckContentRef contentRef = new CheckContentRef(node.getHref(), node.getIdRef());

      // Generate the check
      DefaultCheck<CheckExport> check = new DefaultCheck<CheckExport>(context, node.getSystem(), contentRef);

      // append the check
View Full Code Here

    if (checkContentData.isEmpty()) {
      checkContent = Collections.emptyList();
    } else {
      checkContent = new ArrayList<CheckContentRef>(checkContentData.size());
      for (CheckContentRefType node : checkContentData) {
        checkContent.add(new CheckContentRef(node.getHref(), node.getName()));
      }
    }

    Set<ValueCheckExport> exports = getCheckExports(document, checkType);
    Set<CheckImport> imports = getCheckImports(document, checkType);
View Full Code Here

    if (checkContentData.isEmpty()) {
      checkContent = Collections.emptyList();
    } else {
      checkContent = new ArrayList<CheckContentRef>(checkContentData.size());
      for (CheckContentRefType node : checkContentData) {
        checkContent.add(new CheckContentRef(node.getHref(), node.getName()));
      }
    }

    Set<ValueCheckExport> exports = getCheckExports(document, checkType);
    Set<CheckImport> imports = getCheckImports(document, checkType);
View Full Code Here

    }

    private Set<String> getCheckedDefinitions() {
        Set<String> retval = new LinkedHashSet<String>();
        for (ResolvedCheck check : getResolvedChecks().values()) {
          CheckContentRef ref = check.getCheckContent();
          if (ref.getName() == null) {
            retval = Collections.emptySet();
            break;
          } else {
            retval.add(ref.getName());
          }
        }
        return retval;
    }
View Full Code Here

TOP

Related Classes of scap.check.CheckContentRef

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.