Package edu.sc.seis.sod.status
Class SiteFormatter
java.lang.Object
edu.sc.seis.sod.status.Template
edu.sc.seis.sod.status.SiteFormatter
- All Implemented Interfaces:
SiteTemplate
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatSiteCode
(String siteCode) getResult
(edu.iris.Fissures.IfNetwork.Site site) Method getResultprotected Object
getTemplate
(String tag, Element el) if this class has an template for this tag, it creates it using the passed in element and returns it.protected Object
textTemplate
(String text) returns an object of the template type that this class uses, and returns the passed in text when the getResult method of that template type is calledMethods inherited from class edu.sc.seis.sod.status.Template
getCommonTemplate, parse, parse, setUp
-
Constructor Details
-
SiteFormatter
- Throws:
ConfigurationException
-
SiteFormatter
- Throws:
ConfigurationException
-
-
Method Details
-
getResult
Method getResult- Specified by:
getResult
in interfaceSiteTemplate
- Parameters:
site
- a Site- Returns:
- a String
-
textTemplate
returns an object of the template type that this class uses, and returns the passed in text when the getResult method of that template type is called- Specified by:
textTemplate
in classTemplate
-
getTemplate
if this class has an template for this tag, it creates it using the passed in element and returns it. Otherwise it returns null.- Overrides:
getTemplate
in classTemplate
-
formatSiteCode
-