org.owasp.orizon.library
Class StatsCore

java.lang.Object
  extended by org.owasp.orizon.O
      extended by org.owasp.orizon.library.AbstractCore
          extended by org.owasp.orizon.library.StatsCore

public class StatsCore
extends AbstractCore

The <stats/> security check family. Check syntax is: <stats subj=[code | comment | complexity] verb=[lt | gt | le | ge | ne | eq | ratio] [ direct_object= [loc | loC] ] [modifier = "percentage"] value=numeric value />

Since:
1.1
Author:
thesp0nge

Field Summary
 
Fields inherited from class org.owasp.orizon.library.AbstractCore
attribute, modifier, name, numericValue, s, subj, sValue, value, verb
 
Fields inherited from class org.owasp.orizon.O
base64, hasName, initialized, line_start, line_stop, log, reduced, what
 
Constructor Summary
StatsCore(org.w3c.dom.Node n)
           
 
Method Summary
 boolean readXmlNode(org.w3c.dom.Node n)
          As far from version 0.62 all items must be responsible for XML Node reading routine.
 boolean solve()
          Solves the security check.
 
Methods inherited from class org.owasp.orizon.library.AbstractCore
getAttribute, load, logicalNumericEvaluation, setAttribute
 
Methods inherited from class org.owasp.orizon.O
clone, getStartLine, getStopLine, isCompatible, isInitialized, setStartLine, setStopLine, trackThis
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsCore

public StatsCore(org.w3c.dom.Node n)
Method Detail

solve

public boolean solve()
Solves the security check.

Specified by:
solve in class AbstractCore
Returns:
true if the check is not satisfied and there is no a security issue, or false otherwise.

readXmlNode

public boolean readXmlNode(org.w3c.dom.Node n)
Description copied from class: O
As far from version 0.62 all items must be responsible for XML Node reading routine. Source class must be able to instantiate an object passing XML Node as parameter and having that code read

Specified by:
readXmlNode in class O
Parameters:
n - the node being read
Returns:
true if xml node is well formed and correctly read, or false otherwise.