Package org.drip.feed.loader
Class PropertiesParser
java.lang.Object
org.drip.feed.loader.PropertiesParser
public class PropertiesParser
extends java.lang.Object
PropertiesParser contains the functionality to load the Field/Value Sets from the Field=Value Format.
- Module = Computational Core Module
- Library = Computation Support
- Project = Load, Transform, and compute Target Metrics across Feeds
- Package = Reference/Market Data Feed Loader
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description PropertiesParser(java.lang.String fileName)
Properties Parser Constructor -
Method Summary
Modifier and Type Method Description double
doubleValue(java.lang.String name)
Extract the Named Value as a Doubleint
integerValue(java.lang.String name)
Extract the Named Value as a Integerjava.lang.String
stringValue(java.lang.String name)
Extract the Named Value as a Stringjava.util.Map<java.lang.String,java.lang.String>
valueMap()
Retrieve the Map of Property ValueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PropertiesParser
public PropertiesParser(java.lang.String fileName) throws java.lang.ExceptionProperties Parser Constructor- Parameters:
fileName
- Properties File Name- Throws:
java.lang.Exception
- Thrown if Inputs are Invalid
-
-
Method Details
-
valueMap
public java.util.Map<java.lang.String,java.lang.String> valueMap()Retrieve the Map of Property Value- Returns:
- Map of Property Value
-
stringValue
public java.lang.String stringValue(java.lang.String name)Extract the Named Value as a String- Parameters:
name
- The Name- Returns:
- The Named Value as a String
-
doubleValue
public double doubleValue(java.lang.String name) throws java.lang.ExceptionExtract the Named Value as a Double- Parameters:
name
- The Name- Returns:
- The Named Value as a Double
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
integerValue
public int integerValue(java.lang.String name) throws java.lang.ExceptionExtract the Named Value as a Integer- Parameters:
name
- The Name- Returns:
- The Named Value as a Integer
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-