Package gov.nist.scap.xccdf

Examples of gov.nist.scap.xccdf.CircularReferenceException


      // Check if the this Profile is on the visited stack
      int position = visitedProfiles.search(this);
      if (position != -1) {
        // This profile is in the stack, throw an exception
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via profile extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<? extends AbstractProfile> visited
            = visitedProfiles.subList(
                visitedProfiles.size() - position,
                visitedProfiles.size());
        e.setReferenceList(visited);
        throw e;
      }

      final ProfileImpl extendedProfile = document.lookupExtendedProfile(data.getExtends());
View Full Code Here


    if (data.isSetExtends()) {
      log.info("resolving item extension for rule: " + getId());

      int position = visitedItems.search(this);
      if (position != -1) {
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via item extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<RuleImpl> visited = visitedItems.subList(visitedItems
            .size()
            - position, visitedItems.size());
        e.setReferenceList(visited);
        throw (e);
      }

      final RuleImpl extended = parent.getDocument().lookupExtendedItem(data.getExtends());
      if (extended == null)
View Full Code Here

    if (data.isSetExtends()) {
      log.info("resolving item extension for value: " + getId());

      int position = visitedItems.search(this);
      if (position != -1) {
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via item extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<ValueImpl> visited = visitedItems.subList(visitedItems
            .size()
            - position, visitedItems.size());
        e.setReferenceList(visited);
        throw (e);
      }

      final ValueImpl extended = parent.getDocument().lookupExtendedItem(
          data.getExtends());
View Full Code Here

    if (data.isSetExtends()) {
      log.info("resolving item extension for rule: " + getId());

      int position = visitedItems.search(this);
      if (position != -1) {
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via item extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<RuleImpl> visited = visitedItems.subList(visitedItems
            .size()
            - position, visitedItems.size());
        e.setReferenceList(visited);
        throw (e);
      }

      final RuleImpl extended = parent.getDocument().lookupExtendedItem(data.getExtends());
      if (extended == null)
View Full Code Here

    if (data.isSetExtends()) {
      log.info("resolving item extension for group: " + getId());

      int position = visitedItems.search(this);
      if (position != -1) {
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via item extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<GroupImpl> visited = visitedItems.subList(visitedItems
            .size()
            - position, visitedItems.size());
        e.setReferenceList(visited);
        throw (e);
      }

      final GroupImpl extended = getDocument().lookupExtendedItem(data.getExtends());
      if (extended == null)
View Full Code Here

      // Check if the this Profile is on the visited stack
      int position = visitedProfiles.search(this);
      if (position != -1) {
        // This profile is in the stack, throw an exception
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via profile extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<? extends AbstractProfile> visited
            = visitedProfiles.subList(
                visitedProfiles.size() - position,
                visitedProfiles.size());
        e.setReferenceList(visited);
        throw e;
      }

      final ProfileImpl extendedProfile = document.lookupProfile(data.getExtends());
View Full Code Here

    if (data.isSetExtends()) {
      log.info("resolving item extension for value: " + getId());

      int position = visitedItems.search(this);
      if (position != -1) {
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via item extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<ValueImpl> visited = visitedItems.subList(visitedItems
            .size()
            - position, visitedItems.size());
        e.setReferenceList(visited);
        throw (e);
      }

      final ValueImpl extended = parent.getDocument().lookupExtendedItem(data.getExtends());
      if (extended == null)
View Full Code Here

    if (data.isSetExtends()) {
      log.info("resolving item extension for group: " + getId());

      int position = visitedItems.search(this);
      if (position != -1) {
        CircularReferenceException e = new CircularReferenceException(
            "circular reference via item extension");
        // Cast to List to allow the type to be cast to
        // List<Identifiable>
        List<GroupImpl> visited = visitedItems.subList(visitedItems
            .size()
            - position, visitedItems.size());
        e.setReferenceList(visited);
        throw (e);
      }

      final GroupImpl extended = getDocument().lookupExtendedItem(data.getExtends());
      if (extended == null)
View Full Code Here

TOP

Related Classes of gov.nist.scap.xccdf.CircularReferenceException

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.