|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.RepInfo
public class RepInfo
This class encapsulates representation information, as defined by ISO/IEC 14721, about a content stream.
Field Summary | |
---|---|
static int |
FALSE
Values for _valid |
static int |
TRUE
Values for _valid |
static int |
UNDETERMINED
Values for _valid |
Constructor Summary | |
---|---|
RepInfo(java.lang.String uri)
Creates a RepInfo with a URI reference |
|
RepInfo(java.lang.String uri,
RepInfo external)
Creates a RepInfo with a URI reference and an external RepInfo. |
Method Summary | |
---|---|
java.lang.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(java.lang.String name)
Return property by name, regardless of its position in the property hierarchy. |
java.util.List<Checksum> |
getChecksum()
Returns this object's list of Checksums |
java.util.Date |
getCreated()
Returns the creation date stored in this object. |
java.lang.String |
getFormat()
Return the format identifier |
java.util.Date |
getLastModified()
Returns the last modified date stored in this object. |
java.util.List<Message> |
getMessage()
Returns the message list stored in this object |
java.lang.String |
getMimeType()
Returns the MIME type string stored in this object |
Module |
getModule()
Return the module. |
java.lang.String |
getNote()
Returns the note property stored in this object |
java.util.List<java.lang.String> |
getProfile()
Returns the list of profiles (Strings) stored in this object |
java.util.Map<java.lang.String,Property> |
getProperty()
Returns the Property map stored in this object. |
Property |
getProperty(java.lang.String name)
Returns a named Property from the Property map |
java.util.List<java.lang.String> |
getSigMatch()
Returns the list of matching signatures. |
long |
getSize()
Returns the size property stored in this object. |
java.lang.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. |
java.lang.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(java.util.Date created)
Set the creation date |
void |
setFormat(java.lang.String format)
Set the format identifier |
void |
setLastModified(java.util.Date lastModified)
Set the last modified date |
void |
setMessage(Message message)
Append a Message object to the message list |
void |
setMimeType(java.lang.String mimeType)
Set the MIME type string |
void |
setModule(Module module)
Add the module. |
void |
setNote(java.lang.String note)
Set the note string |
void |
setProfile(java.lang.String profile)
Append a profile String to the profile list |
void |
setProperty(Property property)
Add a Property to the property map. |
void |
setSigMatch(java.util.List<java.lang.String> modnames)
Adds a list of module names, signifying that the document signature matched the module's requirements. |
void |
setSigMatch(java.lang.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(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRUE
public static final int FALSE
public static final int UNDETERMINED
Constructor Detail |
---|
public RepInfo(java.lang.String uri)
uri
- Object file pathname or URIpublic RepInfo(java.lang.String uri, RepInfo external)
false
.
uri
- Object file pathname or URIexternal
- External representation informationMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void copy(RepInfo info)
public java.util.List<Checksum> getChecksum()
public java.util.Date getCreated()
public java.lang.String getFormat()
public java.util.Date getLastModified()
public java.util.List<Message> getMessage()
public java.lang.String getMimeType()
public Module getModule()
public java.util.List<java.lang.String> getProfile()
public java.util.Map<java.lang.String,Property> getProperty()
String
and whose value is a Property
.
public Property getProperty(java.lang.String name)
name
- The name of the Property.public long getSize()
public java.lang.String getUri()
public boolean getURLFlag()
true
, indicates
the object is a URL.
public boolean isConsistent()
public int getWellFormed()
public int getValid()
public java.lang.String getVersion()
public java.lang.String getNote()
public java.util.List<java.lang.String> getSigMatch()
public Property getByName(java.lang.String name)
name
- Property name
public void setChecksum(Checksum checksum)
public void setConsistent(boolean consistent)
public void setCreated(java.util.Date created)
public void setFormat(java.lang.String format)
public void setLastModified(java.util.Date lastModified)
public void setMessage(Message message)
public void setMimeType(java.lang.String mimeType)
public void setModule(Module module)
public void setProfile(java.lang.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(java.lang.String version)
public void setNote(java.lang.String note)
public void setSigMatch(java.lang.String modname)
public void setSigMatch(java.util.List<java.lang.String> modnames)
public void show(OutputHandler handler)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |