Examples of ProfileRefineRuleType


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

              selector.setSelector(nodeData.getSelector());
              selector.setOperator(ValueImpl.mapOperator(nodeData.getOperator()));

              result.add(selector);
            } else if (ProfileRefineRuleType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileRefineRuleType nodeData = (ProfileRefineRuleType)xmlObject;

              RefineRuleProfileSelector selector = new RefineRuleProfileSelectorImpl(this, nodeData.getIdref());
              selector.setWeight(nodeData.getWeight());
              selector.setSelector(nodeData.getSelector());
              selector.setSeverity(RuleImpl.mapSeverity(nodeData.getSeverity()));
              selector.setRole(RuleImpl.mapRole(nodeData.getRole()));

              result.add(selector);
            } else if (ProfileSetValueType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileSetValueType nodeData = (ProfileSetValueType)xmlObject;

              SetValueProfileSelector selector = new SetValueProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getStringValue());
              result.add(selector);
            }
        } while (cursor.toNextSibling());
        return result;
  }
View Full Code Here

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

              selector.setSelector(nodeData.getSelector());
              selector.setOperator(ValueImpl.mapOperator(nodeData.getOperator()));

              result.add(selector);
            } else if (ProfileRefineRuleType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileRefineRuleType nodeData = (ProfileRefineRuleType)xmlObject;

              RefineRuleProfileSelector selector = new RefineRuleProfileSelectorImpl(this, nodeData.getIdref());
              selector.setWeight(nodeData.getWeight());
              selector.setSelector(nodeData.getSelector());
              selector.setSeverity(RuleImpl.mapSeverity(nodeData.getSeverity()));
              selector.setRole(RuleImpl.mapRole(nodeData.getRole()));

              result.add(selector);
            } else if (ProfileSetValueType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileSetValueType nodeData = (ProfileSetValueType)xmlObject;

              SetValueProfileSelector selector = new SetValueProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getStringValue());
              result.add(selector);
            } else if (ProfileSetComplexValueType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileSetComplexValueType nodeData = (ProfileSetComplexValueType)xmlObject;

              SetComplexValueProfileSelector selector = new SetComplexValueProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getItemList());
              result.add(selector);
            }
        } while (cursor.toNextSibling());
        return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.