Package org.openrefine.model
Class ColumnMetadata
- java.lang.Object
-
- org.openrefine.model.ColumnMetadata
-
- All Implemented Interfaces:
Serializable
public class ColumnMetadata extends Object implements Serializable
Holds the metadata for a single column. Fields are immutable, copy the column with the provided methods to change its fields.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ColumnMetadata(String name)ColumnMetadata(String originalName, String name, ReconConfig reconConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetName()StringgetOriginalHeaderLabel()ReconConfiggetReconConfig()inthashCode()static ColumnMetadataload(String s)voidsave(Writer writer)StringtoString()ColumnMetadatawithName(String name)ColumnMetadatawithReconConfig(ReconConfig config)
-
-
-
Constructor Detail
-
ColumnMetadata
public ColumnMetadata(String originalName, String name, ReconConfig reconConfig)
-
ColumnMetadata
public ColumnMetadata(String name)
-
-
Method Detail
-
getOriginalHeaderLabel
public String getOriginalHeaderLabel()
-
withName
public ColumnMetadata withName(String name)
-
getName
public String getName()
-
withReconConfig
public ColumnMetadata withReconConfig(ReconConfig config)
-
getReconConfig
public ReconConfig getReconConfig()
-
save
public void save(Writer writer)
-
load
public static ColumnMetadata load(String s) throws Exception
- Throws:
Exception
-
-