|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanonymizer.Configuration
public class Configuration
The class that parses the configuration input, which includes
QID attribute set, sensitive attributes and anonymization parameters (e.g., k and l).
| Field Summary | |
|---|---|
int |
anonMethod
Anonymization method |
double |
c
c of recursive (c,l)-diversity (not needed for entropy l-diversity |
java.lang.String |
configFilename
configuration filename |
java.util.LinkedList<java.lang.Integer> |
idAttributeIndices
indices of identifier attributes |
java.lang.String |
inputFilename
input filename |
int |
k
k of k-anonymity |
double |
l
l of l-diversity |
static int |
METHOD_ANATOMY
Anatomy anonymization method |
static int |
METHOD_DATAFLY
Datafly anonymization method |
static int |
METHOD_INCOGNITO_K
Incognito anonymization method with k-anonymity as privacy definition |
static int |
METHOD_INCOGNITO_L
Incognito anonymization method with l-diversity as privacy definition |
static int |
METHOD_INCOGNITO_T
Incognito anonymization method with t-closeness as privacy definition |
static int |
METHOD_MONDRIAN
Mondrian anonymization method |
static int |
OUTPUT_FORMAT_ANATOMY
Outputs anonymized records in anatomized form (i.e., output two tables where the first one QIT contains quasi-identifier values and the second table ST contains sensitive values and all other attributes. |
static int |
OUTPUT_FORMAT_GENVALS
Outputs anonymized records in the same format as the input records, replacing quasi-identifier attribute values with their generalizations |
static int |
OUTPUT_FORMAT_GENVALSDIST
Outputs anonymized records in the same format as the input records, replacing quasi-identifier attribute values with their generalization and additional information describing the distribution of values within each equivalence class. |
java.lang.String |
outputFilename
output filename |
int |
outputFormat
output format |
QIDAttribute[] |
qidAtts
quasi-identifier attributes |
SensitiveAttribute[] |
sensitiveAtts
attribute indices corresponding to sensitive attributes |
java.lang.String |
separator
attribute value separator for the input |
int |
suppressionThreshold
Maximum number of tuples to be suppressed |
double |
t
t of t-closeness |
| Constructor Summary | |
|---|---|
Configuration(java.lang.String configFile)
Class constructor |
|
Configuration(java.lang.String[] args)
Class constructor |
|
| Method Summary | |
|---|---|
void |
checkValidity()
Checks validity of the configuration file |
private int |
getOptionPos(java.lang.String option,
java.lang.String[] args)
If set, gets the index of the option |
private void |
parseConfigFile(java.lang.String configFilename)
Parses the XML file |
private void |
parseIDAtts(org.w3c.dom.Node id)
Parses the info on a identifier attributes |
private void |
parseQIDAtts(org.w3c.dom.Node qid)
Parses the info on a quasi-identifier attribute |
private void |
parseSensitiveAtts(org.w3c.dom.Node sens)
Parses the info on a sensitive attribute |
void |
setInputFilename(java.lang.String filename)
Sets the input filename |
void |
setMethod(java.lang.String method)
Sets the anonymization method |
void |
setOptions(java.lang.String[] args)
Sets all possible options specified in the arguments |
void |
setOutputFilename(java.lang.String filename)
Sets the input filename |
void |
setOutputFormat(java.lang.String format)
Sets the output format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OUTPUT_FORMAT_GENVALS
public static final int OUTPUT_FORMAT_GENVALSDIST
Specifics of this output method and examples can be found in the following paper:
@inproceedings{anonClassification,
author = {Ali Inan and Murat Kantarcioglu and Elisa Bertino},
title = {Using Anonymized Data for Classification},
booktitle = {ICDE},
year = {2009},
pages = {429-440}
}
public static final int OUTPUT_FORMAT_ANATOMY
outputFilename + "QIT" and ST is written to a file named
outputFilename + "ST".
Specifics of this output method and examples can be found in the following paper:
@inproceedings{anatomy,
author = {Xiao, Xiaokui and Tao, Yufei},
title = {Anatomy: simple and effective privacy preservation},
booktitle = {VLDB '06: Proceedings of the 32nd international conference on Very large data bases},
year = {2006},
pages = {139--150},
location = {Seoul, Korea},
publisher = {VLDB Endowment}
}
public static final int METHOD_DATAFLY
public static final int METHOD_MONDRIAN
public static final int METHOD_INCOGNITO_K
public static final int METHOD_INCOGNITO_L
public static final int METHOD_INCOGNITO_T
public static final int METHOD_ANATOMY
public int anonMethod
public int suppressionThreshold
public int k
public double l
public double c
public double t
public java.lang.String inputFilename
public java.lang.String separator
public java.lang.String outputFilename
public int outputFormat
public java.util.LinkedList<java.lang.Integer> idAttributeIndices
public SensitiveAttribute[] sensitiveAtts
public QIDAttribute[] qidAtts
public java.lang.String configFilename
| Constructor Detail |
|---|
public Configuration(java.lang.String configFile)
throws java.lang.Exception
configFile - path to the configuration file
java.lang.Exception
public Configuration(java.lang.String[] args)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
java.lang.Exception
args - Vector of program arguments
(to set various options, including configuration filename)
java.lang.Exception
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException| Method Detail |
|---|
private void parseConfigFile(java.lang.String configFilename)
throws java.lang.Exception
java.lang.Exception
private void parseIDAtts(org.w3c.dom.Node id)
throws java.lang.Exception
id - The root node of id attributes
java.lang.Exception
private void parseQIDAtts(org.w3c.dom.Node qid)
throws java.lang.Exception
qid - The root node of a qid attribute
java.lang.Exception
private void parseSensitiveAtts(org.w3c.dom.Node sens)
throws java.lang.Exception
sens - The root node of a sensitive attribute
java.lang.Exception
public void setInputFilename(java.lang.String filename)
throws java.lang.Exception
filename - path to the input file
java.lang.Exceptionpublic void setOutputFilename(java.lang.String filename)
filename - path to the input file
java.lang.Exceptionpublic void setMethod(java.lang.String method)
method - an anonymization method identifierpublic void setOutputFormat(java.lang.String format)
format - an output format identifierpublic void setOptions(java.lang.String[] args)
args - list of arguments
private int getOptionPos(java.lang.String option,
java.lang.String[] args)
option - Option to be searchedargs - List of all arguments
public void checkValidity()
throws java.lang.Exception
java.lang.Exception - If not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||