|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.vocab.FieldInfoReader
public class FieldInfoReader
Provides access to infomormation (beyond that expressed in the metadata schema) about a metadata field, such as cataloging best practices and definitions of controlled vocabulary.
FieldInfoReader reads FieldInfo xml documents and is used by org.dlese.dpc.schemedit.autoform classes as well as MetaDataFramework instances.
Note: why doesn't this class extend the AbstractConfigReader class?
| Nested Class Summary | |
|---|---|
class |
FieldInfoReader.OtherPractice
Other practices have a header and a list of "practices". |
| Field Summary | |
|---|---|
URI |
uri
Description of the Field |
| Constructor Summary | |
|---|---|
FieldInfoReader(String path)
Constructor for the FieldInfoReader object |
|
FieldInfoReader(URI uri)
Constructor for the FieldInfoReader object |
|
| Method Summary | |
|---|---|
static String |
applyMarkup(String text,
String link,
String url,
String style)
Apply specified markup (url, style) to the first occurrence of a substring (link ) of the provided text. |
void |
destroy()
Description of the Method |
String |
getDefinition()
Gets the definition for this field. |
Document |
getDocument()
Gets the document attribute of the FieldInfoReader object |
List |
getDonts()
Gets the donts attribute of the FieldInfoReader object |
List |
getDos()
Gets the dos attribute of the FieldInfoReader object |
static String |
getElementText(Element e)
Return formatted contents for given Element, inserting hyperlink when "link" and "url" attributes are present |
List |
getExamples()
Gets the examples attribute of the FieldInfoReader object |
String |
getFormat()
Get the metadata format of the framework containing this field. |
String |
getName()
Get the name of the field this file documents. |
List |
getOtherPractices()
Get the list of otherPractices specified by this fields file. |
String |
getPath()
Get the xpath to the field this file documents. |
List |
getPrompts()
Gets the prompts for this field. |
String |
getSource()
Returns URI (as String) of the source file for this FieldInfoReader |
List |
getTermAndDeftns(String term)
Gets a List of TermAndDeftn instances for specified term (usually there
is only one item in the list) |
List |
getTermList()
Gets a sorted list of vocab Terms defined by this field. |
LabelValueBean[] |
getTermSelectOptions()
Build an array of terms (represented as LabelValueBean instances) to be used in a html select object. |
Collection |
getVocabTerms()
Gets the TermAndDeftn instances
defined for this field. |
static String |
replaceFirst(String in,
String find,
String replace)
Replace first occurrance of exact match (case sensitive) |
static void |
setDebug(boolean d)
Sets the debug attribute of the FieldInfoReader class |
String |
toString()
Debugging method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public URI uri
| Constructor Detail |
|---|
public FieldInfoReader(String path)
throws Exception
path - Description of the Parameter
Exception - Description of the Exception
public FieldInfoReader(URI uri)
throws Exception
uri - Description of the Parameter
Exception - Description of the Exception| Method Detail |
|---|
public String getSource()
public Document getDocument()
public static void setDebug(boolean d)
d - The new debug valuepublic List getTermAndDeftns(String term)
TermAndDeftn instances for specified term (usually there
is only one item in the list)
term - Description of the Parameter
public Collection getVocabTerms()
TermAndDeftn instances
defined for this field.
public List getTermList()
public LabelValueBean[] getTermSelectOptions()
public String getPath()
throws Exception
Exception - Description of the Exception
public String getName()
throws Exception
Exception - Description of the Exception
public String getFormat()
throws Exception
Exception - Description of the Exceptionpublic String getDefinition()
public List getPrompts()
public List getDos()
public List getDonts()
public List getExamples()
public List getOtherPractices()
Returns a list of OtherPractice instances, each of which has a header (e.g, "No title? Do this") and a set of "pratices".
public static String applyMarkup(String text,
String link,
String url,
String style)
text - A string of which a substring will receive formattinglink - the substring to recieve formattingurl - if present, provides destination for link (link becomes a
hyperlink to url)style - specifies the formatting to be applied to link (bold, italic,
bold and italic)
public static String getElementText(Element e)
e - Description of the Parameter
public static String replaceFirst(String in,
String find,
String replace)
needed to replace strings with regex pattern chars, which don't get replaced by String.replace
in - Description of the Parameterfind - Description of the Parameterreplace - Description of the Parameter
public String toString()
toString in class Objectpublic void destroy()
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||