Package org.openrefine
Class ProjectMetadata
- java.lang.Object
-
- org.openrefine.ProjectMetadata
-
public class ProjectMetadata extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_FILE_NAME
static String
OLD_FILE_NAME
static String
TEMP_FILE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description ProjectMetadata()
protected
ProjectMetadata(Instant date)
ProjectMetadata(Instant created, Instant modified, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendImportOptionMetadata(com.fasterxml.jackson.databind.node.ObjectNode options)
String
getContributors()
Instant
getCreated()
String
getCreator()
Serializable
getCustomMetadata(String key)
String
getDescription()
String
getEncoding()
int
getEncodingConfidence()
com.fasterxml.jackson.databind.node.ArrayNode
getImportOptionMetadata()
Instant
getModified()
String
getName()
String
getPassword()
PreferenceStore
getPreferenceStore()
long
getRowCount()
String
getSubject()
String[]
getTags()
com.fasterxml.jackson.databind.node.ArrayNode
getUserMetadata()
com.fasterxml.jackson.databind.node.ArrayNode
getUserMetadataJson()
boolean
isDirty()
protected static void
preparePreferenceStore(PreferenceStore ps)
void
setAnyField(String metaName, String valueString)
void
setContributors(String contributors)
void
setCreator(String creator)
void
setCustomMetadata(String key, Serializable value)
void
setDescription(String description)
void
setEncoding(String encoding)
void
setEncodingConfidence(int confidence)
void
setEncodingConfidence(String confidence)
void
setImportOptionMetadata(com.fasterxml.jackson.databind.node.ArrayNode jsonArray)
void
setLastSave()
void
setName(String name)
void
setPassword(String password)
void
setRowCount(long rowCount)
void
setRowCountInternal(long rowCount)
Set row count without updating the last modified time.void
setSubject(String subject)
void
setTags(String[] tags)
void
setUserMetadata(com.fasterxml.jackson.databind.node.ArrayNode userMetadata)
void
updateModified()
-
-
-
Field Detail
-
DEFAULT_FILE_NAME
public static final String DEFAULT_FILE_NAME
- See Also:
- Constant Field Values
-
TEMP_FILE_NAME
public static final String TEMP_FILE_NAME
- See Also:
- Constant Field Values
-
OLD_FILE_NAME
public static final String OLD_FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isDirty
public boolean isDirty()
-
preparePreferenceStore
protected static void preparePreferenceStore(PreferenceStore ps)
-
getCreated
public Instant getCreated()
-
setName
public void setName(String name)
-
getName
public String getName()
-
setEncoding
public void setEncoding(String encoding)
-
getEncoding
public String getEncoding()
-
setEncodingConfidence
public void setEncodingConfidence(int confidence)
-
setEncodingConfidence
public void setEncodingConfidence(String confidence)
-
getEncodingConfidence
public int getEncodingConfidence()
-
setTags
public void setTags(String[] tags)
-
getTags
public String[] getTags()
-
setPassword
public void setPassword(String password)
-
getPassword
public String getPassword()
-
getModified
public Instant getModified()
-
updateModified
public void updateModified()
-
getPreferenceStore
public PreferenceStore getPreferenceStore()
-
getCustomMetadata
public Serializable getCustomMetadata(String key)
-
setCustomMetadata
public void setCustomMetadata(String key, Serializable value)
-
getImportOptionMetadata
public com.fasterxml.jackson.databind.node.ArrayNode getImportOptionMetadata()
-
setImportOptionMetadata
public void setImportOptionMetadata(com.fasterxml.jackson.databind.node.ArrayNode jsonArray)
-
appendImportOptionMetadata
public void appendImportOptionMetadata(com.fasterxml.jackson.databind.node.ObjectNode options)
-
getCreator
public String getCreator()
-
setCreator
public void setCreator(String creator)
-
getContributors
public String getContributors()
-
setContributors
public void setContributors(String contributors)
-
getSubject
public String getSubject()
-
setSubject
public void setSubject(String subject)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getRowCount
public long getRowCount()
-
setRowCount
public void setRowCount(long rowCount)
-
setRowCountInternal
public void setRowCountInternal(long rowCount)
Set row count without updating the last modified time. Internal use only!
-
getUserMetadata
public com.fasterxml.jackson.databind.node.ArrayNode getUserMetadata()
-
getUserMetadataJson
public com.fasterxml.jackson.databind.node.ArrayNode getUserMetadataJson()
-
setUserMetadata
public void setUserMetadata(com.fasterxml.jackson.databind.node.ArrayNode userMetadata)
-
setLastSave
public void setLastSave()
-
-