anonymizer
Class SensitiveAttribute

java.lang.Object
  extended by anonymizer.SensitiveAttribute

public class SensitiveAttribute
extends java.lang.Object

Data structure that holds all relevant information related to a sensitive attribute. Namely, attribute index in the input, string->integer domain mapping for categorical attributes and etc.


Field Summary
 java.util.Hashtable<java.lang.String,java.lang.Integer> catDomMapping
          Mapping from the categorical domain to discrete-valued numerical (integer) domain for categorical attributes
 int index
          Index of the attribute
 
Constructor Summary
SensitiveAttribute(int index, org.w3c.dom.Node att)
          Class constructor
 
Method Summary
private  void parseMapping(org.w3c.dom.Node map)
          Assign the mapping from the categorical domain to discrete valued numerical domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

catDomMapping

public java.util.Hashtable<java.lang.String,java.lang.Integer> catDomMapping
Mapping from the categorical domain to discrete-valued numerical (integer) domain for categorical attributes


index

public int index
Index of the attribute

Constructor Detail

SensitiveAttribute

public SensitiveAttribute(int index,
                          org.w3c.dom.Node att)
                   throws java.lang.Exception
Class constructor

Parameters:
att - The node that describes a QID attribute in the configuration file
index - Index of the attribute
Throws:
java.lang.Exception
Method Detail

parseMapping

private void parseMapping(org.w3c.dom.Node map)
                   throws java.lang.Exception
Assign the mapping from the categorical domain to discrete valued numerical domain

Parameters:
map - Root node that contains (category, integer-value) pairs
Throws:
java.lang.Exception