All Packages Class Hierarchy This Package Previous Next Index
Class edu.vt.marian.Document.SimpleDocument
java.lang.Object
|
+----edu.vt.marian.common.FullID
|
+----edu.vt.marian.Document.SimpleDocument
- public class SimpleDocument
- extends FullID
- implements Document
Sort of the natural solution to the interface: a Document that
can do all and only the interface methods with the minimum of
overhead.
-
SimpleDocument(Debug)
- Create a null SimpleDocument object.
-
SimpleDocument(Debug, String)
- Create a SimpleDocument object.
-
SimpleDocument(Debug, String, String)
- Create a SimpleDocument object from just a short and a long
description.
-
SimpleDocument(Debug, String, String, String)
- Create a SimpleDocument object.
-
attributes()
- return a Vector of metadata attributes for this document.
-
copy()
- An attempt to get around declaring public clone() methods.
-
isValid()
- Is this object ready to rock? Yes.
-
presentAttribute(int, int)
- Return an Object (almost certainly a String) in some markupType for the given
attribute.
-
presentAttributes(int)
- return a Vector of metadata attributes for this document.
-
presentFull(int)
- return the full description of this document.
-
presentFull(int, BufferedWriter)
-
-
presentLong(int)
- return the long description of this document.
-
presentLong(int, BufferedWriter)
-
-
presentShort(int)
- return the short description of this document in one line.
-
presentShort(int, BufferedWriter)
-
SimpleDocument
public SimpleDocument(Debug dbg,
String shDesc,
String lgDesc,
String flDesc)
- Create a SimpleDocument object.
- Parameters:
- shDesc - short description.
- lgDesc - long description.
- flDesc - full description.
SimpleDocument
public SimpleDocument(Debug dbg,
String shDesc,
String lgDesc)
- Create a SimpleDocument object from just a short and a long
description.
- Parameters:
- shDesc - short description.
- lgDesc - long description.
SimpleDocument
public SimpleDocument(Debug dbg,
String shDesc)
- Create a SimpleDocument object.
- Parameters:
- shDesc - short description.
SimpleDocument
public SimpleDocument(Debug dbg)
- Create a null SimpleDocument object.
isValid
public boolean isValid()
- Is this object ready to rock? Yes.
- Overrides:
- isValid in class FullID
copy
public DigInfObj copy()
- An attempt to get around declaring public clone() methods.
presentShort
public String presentShort(int markupType)
- return the short description of this document in one line.
- Parameters:
- markupType - how to mark up the string returned (e.g., HTML or ASCII).
- Returns:
- the short description String.
presentShort
public int presentShort(int markupType,
BufferedWriter out) throws IOException
presentLong
public String presentLong(int markupType)
- return the long description of this document.
- Parameters:
- markupType - how to mark up the string returned (e.g., HTML or ASCII).
- Returns:
- a (potentially very long) String.
presentLong
public int presentLong(int markupType,
BufferedWriter out) throws IOException
presentFull
public String presentFull(int markupType)
- return the full description of this document.
- Parameters:
- markupType - how to mark up the string returned (e.g., HTML or ASCII).
- Returns:
- a (potentially very long) String.
presentFull
public int presentFull(int markupType,
BufferedWriter out) throws IOException
presentAttributes
public Vector presentAttributes(int markupType)
- return a Vector of metadata attributes for this document.
- Parameters:
- markupType - how to mark up the string returned (e.g., HTML or ASCII).
- Returns:
- a Vector of triples [attrName, attrType, attrValue].
presentAttribute
public Object presentAttribute(int attrID,
int markupType)
- Return an Object (almost certainly a String) in some markupType for the given
attribute.
- Parameters:
- markupType - how to mark up the string returned (e.g., HTML or ASCII).
- Returns:
- a Vector of triples [attrName, attrType, attrValue].
attributes
public Vector attributes()
- return a Vector of metadata attributes for this document.
- Parameters:
- markupType - how to mark up the string returned (e.g., HTML or ASCII).
- Returns:
- a Vector of triples [attrName, attrType, attrValue].
All Packages Class Hierarchy This Package Previous Next Index