|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.module.html.HtmlMetadata
public class HtmlMetadata
Repository for an HTML document's metadata. Also hold some state information, so that properties involving tags, attributes and pcdata can be constructed.
Constructor Summary | |
---|---|
HtmlMetadata()
Constructor. |
Method Summary | |
---|---|
void |
addAbbr(Property prop)
Adds an ABBR tag's contents to the Meta property. |
void |
addCitation(java.lang.String text)
Adds a CITE element's pcdata to the Citations property. |
void |
addDef(java.lang.String text)
Adds a defined term to the Defined Terms property. |
void |
addEntity(java.lang.String entity)
Adds a String to the Entities property. |
void |
addFrame(Property prop)
Adds a FRAME tag's contents to the Meta property. |
void |
addImage(Property prop)
Adds an item to the Images property. |
void |
addLanguage(java.lang.String lang)
Add a language defined in an attribute of any element except the HTML element. |
void |
addLink(java.lang.String link)
Adds a link to the Links property. |
void |
addMeta(Property prop)
Adds a META tag's contents to the Meta property. |
void |
addScript(java.lang.String stype)
Adds the language of a SCRIPT element to the Scripts property. |
void |
addToPropUnderConstruction(char[] ch,
int start,
int length)
Adds PCDATA text to the property under construction. |
java.lang.String |
extractHttpEquivValue(Property prop,
java.lang.String httpEquivValue)
Extract the content value associated with a given httpEquiv. |
void |
finishPropUnderConstruction()
Finishes any property under construction. |
java.lang.String |
getCharset()
|
Property |
getPropUnderConstruction()
Returns the "property under construction." |
java.lang.String |
getTitle()
Returns the contents of the TITLE element. |
Utf8BlockMarker |
getUtf8BlockMarker()
Returns the UTF8BlockMarker for the metadata. |
void |
setCharset(java.lang.String charset)
Stores the charset defined in the HTML element. |
void |
setLanguage(java.lang.String lang)
Stores the language defined in the HTML element. |
void |
setPropUnderConstruction(Property p)
Sets a "property under construction". |
void |
setTitle(java.lang.String title)
Stores the contents of the TITLE element. |
Property |
toProperty(TextMDMetadata _textMD)
Converts the metadata to a Property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlMetadata()
Method Detail |
---|
public void setTitle(java.lang.String title)
public void setLanguage(java.lang.String lang)
public void addLanguage(java.lang.String lang)
public void addCitation(java.lang.String text)
public void addMeta(Property prop)
public java.lang.String extractHttpEquivValue(Property prop, java.lang.String httpEquivValue)
prop
- List containing the description of the meta taghttpEquivValue
- the httpEquiv to consider
public void setCharset(java.lang.String charset)
public void addFrame(Property prop)
public void addAbbr(Property prop)
public void addLink(java.lang.String link)
public void addImage(Property prop)
public void addDef(java.lang.String text)
public void addScript(java.lang.String stype)
public void addEntity(java.lang.String entity)
public Utf8BlockMarker getUtf8BlockMarker()
public java.lang.String getTitle()
public java.lang.String getCharset()
public Property toProperty(TextMDMetadata _textMD)
public void setPropUnderConstruction(Property p)
public Property getPropUnderConstruction()
public void addToPropUnderConstruction(char[] ch, int start, int length)
public void finishPropUnderConstruction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |