public class AuditResult extends com.qoppa.pdfOptimizer.priv.AbstractResult<AuditResult>
Constructor and Description |
---|
AuditResult(String description,
int count,
long bytes)
Creates a new AuditResult that does not contain children.
|
AuditResult(String description,
List<AuditResult> results)
Creates a new AuditResult that contains children.
|
Modifier and Type | Method and Description |
---|---|
long |
getBytes()
Get the size of the objects in bytes.
|
List<AuditResult> |
getChildren()
Get a list of child results.
|
int |
getCount()
Get the number of objects counted.
|
String |
getDescription()
Get the description of the type of object this result contains information about.
|
void |
setBytes(long bytes)
Sets the number of bytes.
|
void |
setCount(int count)
Sets the object count.
|
com.qoppa.nanoxml.XMLElement |
toXml()
Convert the result to XML.
|
public AuditResult(String description, int count, long bytes)
description
- The description of the object type this result contains information about.count
- The number of objects counted.bytes
- The size of the objects in bytes.public AuditResult(String description, List<AuditResult> results)
description
- The description of the object type this result contains information about.results
- The child results.public long getBytes()
public void setBytes(long bytes)
bytes
- the size of the objects in bytes.public com.qoppa.nanoxml.XMLElement toXml()
toXml
in class com.qoppa.pdfOptimizer.priv.AbstractResult<AuditResult>
public List<AuditResult> getChildren()
getChildren
in class com.qoppa.pdfOptimizer.priv.AbstractResult<AuditResult>
public int getCount()
getCount
in class com.qoppa.pdfOptimizer.priv.AbstractResult<AuditResult>
public String getDescription()
getDescription
in class com.qoppa.pdfOptimizer.priv.AbstractResult<AuditResult>
public void setCount(int count)
setCount
in class com.qoppa.pdfOptimizer.priv.AbstractResult<AuditResult>
count
- the number of objects.