|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kpro.dataobjects.Case
public class Case
A class that contains a single datatype from a PolicyObject.
Field Summary | |
---|---|
private java.util.ArrayList<Category> |
categories
|
private java.lang.String |
datatype
|
private java.util.ArrayList<Purpose> |
purpose
|
private java.util.ArrayList<Recipient> |
recipient
|
private java.util.ArrayList<Retention> |
retention
|
Constructor Summary | |
---|---|
Case()
|
|
Case(java.util.ArrayList<Purpose> purpose,
java.util.ArrayList<Retention> retention,
java.util.ArrayList<Recipient> recipients,
java.util.ArrayList<Category> categories,
java.lang.String datatype)
|
Method Summary | |
---|---|
void |
addCategory(Category c)
Adds a category to the case |
void |
addPurpose(Purpose p)
Adds a purpose to the case |
void |
addRecipient(Recipient r)
Adds a recipient to the case |
void |
addRetention(Retention t)
Adds a retention to the case |
int |
compareTo(java.lang.Object o)
to allow comparision of cases, primarily for white/blacklisting. |
java.util.ArrayList<Category> |
getCategories()
Gets the categories |
Category |
getCategory(int i)
Returns the ith category |
java.lang.String |
getDataType()
Returns the datatype |
Purpose |
getPurpose(int i)
Returns the ith purpose |
java.util.ArrayList<Purpose> |
getPurposes()
Gets the purposes |
Recipient |
getRecipient(int i)
Returns the ith recipient |
java.util.ArrayList<Recipient> |
getRecipients()
Gets the recipients |
Retention |
getRetention(int i)
Returns the ith retention |
java.util.ArrayList<Retention> |
getRetentions()
Gets the retentions |
void |
setDataType(java.lang.String s)
Sets the datatype to the case |
java.lang.String |
toString()
Based on debug.print |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<Purpose> purpose
private java.util.ArrayList<Retention> retention
private java.util.ArrayList<Recipient> recipient
private java.util.ArrayList<Category> categories
private java.lang.String datatype
Constructor Detail |
---|
public Case()
public Case(java.util.ArrayList<Purpose> purpose, java.util.ArrayList<Retention> retention, java.util.ArrayList<Recipient> recipients, java.util.ArrayList<Category> categories, java.lang.String datatype)
Method Detail |
---|
public void addPurpose(Purpose p)
p
- public void addRetention(Retention t)
t
- public void addRecipient(Recipient r)
r
- public void addCategory(Category c)
c
- public void setDataType(java.lang.String s)
s
- public java.util.ArrayList<Purpose> getPurposes()
public Purpose getPurpose(int i)
int
- i
public java.util.ArrayList<Retention> getRetentions()
public Retention getRetention(int i)
int
- i
public java.util.ArrayList<Recipient> getRecipients()
public Recipient getRecipient(int i)
int
- i
public java.util.ArrayList<Category> getCategories()
public Category getCategory(int i)
int
- i
public java.lang.String getDataType()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
another
- object (a case)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |