public class HtmlMetadata extends Object
Constructor and Description |
---|
HtmlMetadata()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAbbr(Property prop)
Adds an ABBR tag's contents to the Meta property.
|
void |
addCitation(String text)
Adds a CITE element's pcdata to the Citations property.
|
void |
addDef(String text)
Adds a defined term to the Defined Terms property.
|
void |
addEntity(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(String lang)
Add a language defined in an attribute of any element
except the HTML element.
|
void |
addLink(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(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.
|
String |
extractHttpEquivValue(Property prop,
String httpEquivValue)
Extract the content value associated with a given httpEquiv.
|
void |
finishPropUnderConstruction()
Finishes any property under construction.
|
String |
getCharset() |
Property |
getPropUnderConstruction()
Returns the "property under construction."
|
String |
getTitle()
Returns the contents of the TITLE element.
|
Utf8BlockMarker |
getUtf8BlockMarker()
Returns the UTF8BlockMarker for the metadata.
|
void |
setCharset(String charset)
Stores the charset defined in the HTML element.
|
void |
setLanguage(String lang)
Stores the language defined in the HTML element.
|
void |
setPropUnderConstruction(Property p)
Sets a "property under construction".
|
void |
setTitle(String title)
Stores the contents of the TITLE element.
|
Property |
toProperty(TextMDMetadata _textMD)
Converts the metadata to a Property.
|
public void setTitle(String title)
public void setLanguage(String lang)
public void addLanguage(String lang)
public void addCitation(String text)
public void addMeta(Property prop)
public String extractHttpEquivValue(Property prop, String httpEquivValue)
prop
- List containing the description of the meta taghttpEquivValue
- the httpEquiv to considerpublic void setCharset(String charset)
public void addFrame(Property prop)
public void addAbbr(Property prop)
public void addLink(String link)
public void addImage(Property prop)
public void addDef(String text)
public void addScript(String stype)
public void addEntity(String entity)
public Utf8BlockMarker getUtf8BlockMarker()
public String getTitle()
public 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()
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.