Package edu.sc.seis.sod.status
Class ChannelFormatter
java.lang.Object
edu.sc.seis.sod.status.Template
edu.sc.seis.sod.status.ChannelFormatter
- All Implemented Interfaces:
ChannelTemplate
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionChannelFormatter
(Element el, boolean filize) ChannelFormatter
(Element el, ChannelGroupTemplate cgt) ChannelFormatter
(Element el, ChannelGroupTemplate cgt, boolean filize) -
Method Summary
Modifier and TypeMethodDescriptiongetResult
(edu.iris.Fissures.IfNetwork.Channel chan) protected 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.static ChannelFormatter
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
-
ChannelFormatter
public ChannelFormatter() -
ChannelFormatter
- Throws:
ConfigurationException
-
ChannelFormatter
- Throws:
ConfigurationException
-
ChannelFormatter
- Throws:
ConfigurationException
-
ChannelFormatter
public ChannelFormatter(Element el, ChannelGroupTemplate cgt, boolean filize) throws ConfigurationException - Throws:
ConfigurationException
-
-
Method Details
-
makeSiteAndCode
-
textTemplate
Description copied from class:Template
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
Description copied from class:Template
if this class has an template for this tag, it creates it using the passed in element and returns it. Otherwise it should return the superclass implementation of the getCommonTemplate method. Though no harm will come from merely returning null, they won't benefit from the wisdom and extra tags provided by their elder classes.- Overrides:
getTemplate
in classTemplate
-
getResult
- Specified by:
getResult
in interfaceChannelTemplate
-