public class RepInfo extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
FALSE
Values for _valid
|
static int |
TRUE
Values for _valid
|
static int |
UNDETERMINED
Values for _valid
|
Constructor and Description |
---|
RepInfo(String uri)
Creates a RepInfo with a URI reference
|
RepInfo(String uri,
RepInfo external)
Creates a RepInfo with a URI reference and an external RepInfo.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the RepInfo one level deep, making fresh copies
of the checksum, message, profile, signature match,
and property fields.
|
void |
copy(RepInfo info)
Copies all the information out of the parameter object.
|
Property |
getByName(String name)
Return property by name, regardless of its position in the
property hierarchy.
|
List<Checksum> |
getChecksum()
Returns this object's list of Checksums
|
Date |
getCreated()
Returns the creation date stored in this object.
|
String |
getFormat()
Return the format identifier
|
Date |
getLastModified()
Returns the last modified date stored in this object.
|
List<Message> |
getMessage()
Returns the message list stored in this object
|
String |
getMimeType()
Returns the MIME type string stored in this object
|
Module |
getModule()
Return the module.
|
String |
getNote()
Returns the note property stored in this object
|
List<String> |
getProfile()
Returns the list of profiles (Strings) stored in this object
|
Map<String,Property> |
getProperty()
Returns the Property map stored in this object.
|
Property |
getProperty(String name)
Returns a named Property from the Property map
|
List<String> |
getSigMatch()
Returns the list of matching signatures.
|
long |
getSize()
Returns the size property stored in this object.
|
String |
getUri()
Returns the URI property stored in this object.
|
boolean |
getURLFlag()
Returns a flag which, if
true , indicates
the object is a URL. |
int |
getValid()
Returns the value of the validity flag.
|
String |
getVersion()
Returns the version property stored in this object
|
int |
getWellFormed()
Returns the value of the well-formed flag.
|
boolean |
isConsistent()
Returns the value of the consistency flag.
|
void |
setChecksum(Checksum checksum)
Append a Checksum object to the checksum list.
|
void |
setConsistent(boolean consistent)
Set the value of the consistency flag
|
void |
setCreated(Date created)
Set the creation date
|
void |
setFormat(String format)
Set the format identifier
|
void |
setLastModified(Date lastModified)
Set the last modified date
|
void |
setMessage(Message message)
Append a Message object to the message list
|
void |
setMimeType(String mimeType)
Set the MIME type string
|
void |
setModule(Module module)
Add the module.
|
void |
setNote(String note)
Set the note string
|
void |
setProfile(String profile)
Append a profile String to the profile list
|
void |
setProperty(Property property)
Add a Property to the property map.
|
void |
setSigMatch(List<String> modnames)
Adds a list of module names, signifying that the document
signature matched the module's requirements.
|
void |
setSigMatch(String modname)
Adds the name of a module, signifying that the document
signature matched the module's requirements.
|
void |
setSize(long size)
Set the size property
|
void |
setURLFlag(boolean flag)
Set the flag to indicate whether this is a URL (true)
or a file (false)
|
void |
setValid(boolean valid)
Set the validity flag
|
void |
setValid(int valid)
Set the validity flag
|
void |
setVersion(String version)
Set the version string
|
void |
setWellFormed(boolean wellFormed)
Set the well-formed flag
|
void |
setWellFormed(int wellFormed)
Set the wellFormed flag.
|
void |
show(OutputHandler handler)
Output the information in this object.
|
public static final int TRUE
public static final int FALSE
public static final int UNDETERMINED
public RepInfo(String uri)
uri
- Object file pathname or URIpublic Object clone()
public void copy(RepInfo info)
public Date getCreated()
public String getFormat()
public Date getLastModified()
public String getMimeType()
public Module getModule()
public List<String> getProfile()
public Map<String,Property> getProperty()
String
and whose value is a Property
.public Property getProperty(String name)
name
- The name of the Property.public long getSize()
public String getUri()
public boolean getURLFlag()
true
, indicates
the object is a URL.public boolean isConsistent()
public int getWellFormed()
public int getValid()
public String getVersion()
public String getNote()
public List<String> getSigMatch()
public Property getByName(String name)
name
- Property namepublic void setChecksum(Checksum checksum)
public void setConsistent(boolean consistent)
public void setCreated(Date created)
public void setFormat(String format)
public void setLastModified(Date lastModified)
public void setMessage(Message message)
public void setMimeType(String mimeType)
public void setModule(Module module)
public void setProfile(String profile)
public void setProperty(Property property)
public void setSize(long size)
public void setURLFlag(boolean flag)
public void setWellFormed(boolean wellFormed)
wellFormed
- Boolean argument that maps to
an integer value:
true maps to TRUE, and false to FALSE.public void setWellFormed(int wellFormed)
public void setValid(boolean valid)
valid
- Boolean argument that maps to
an integer value:
true maps to TRUE, and false to FALSE.public void setValid(int valid)
valid
- Permitted values are TRUE, FALSE, AND
UNDETERMINED. The effect of using
other values is undefined.public void setVersion(String version)
public void setNote(String note)
public void setSigMatch(String modname)
public void setSigMatch(List<String> modnames)
public void show(OutputHandler handler)
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.