public class HierarchyBuilder
extends java.lang.Object
Constructor and Description |
---|
HierarchyBuilder(java.io.File folder,
java.lang.String relation)
Constructor of the hierarchy builder.
|
Modifier and Type | Method and Description |
---|---|
org.deidentifier.arx.AttributeType.Hierarchy |
getHierarchy(Attribute att,
Instances instances)
This method creates an hierarchy instance for a given attribute.
|
java.lang.String |
toString() |
public HierarchyBuilder(java.io.File folder, java.lang.String relation)
folder
- Path to the folder containing the hierarchies.relation
- Name of the relation.public org.deidentifier.arx.AttributeType.Hierarchy getHierarchy(Attribute att, Instances instances) throws java.io.IOException
att
- Attribute for which the hierarchy should be createdinstances
- java.io.IOException
- if it was not possible to locate the hierarchy file.public java.lang.String toString()
toString
in class java.lang.Object