Package nl.stokpop.eventscheduler.api
Class EventGeneratorProperties
- java.lang.Object
-
- nl.stokpop.eventscheduler.api.EventGeneratorProperties
-
public class EventGeneratorProperties extends java.lang.ObjectProperties for event schedule generators. Names that start with @ are filtered out and used as meta properties. Meta property lines have syntax@metaproperty=value. This is an immutable class and makes an unmodifiable copies of the given Map.
-
-
Constructor Summary
Constructors Constructor Description EventGeneratorProperties()EventGeneratorProperties(java.lang.String propsAsText)EventGeneratorProperties(java.util.Map<java.lang.String,java.lang.String> props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMetaProperty(java.lang.String name)java.lang.StringgetProperty(java.lang.String name)static booleanhasLinesThatStartWithMetaPropertyPrefix(java.lang.String text)java.lang.StringtoString()
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String name)
-
getMetaProperty
public java.lang.String getMetaProperty(java.lang.String name)
-
hasLinesThatStartWithMetaPropertyPrefix
public static boolean hasLinesThatStartWithMetaPropertyPrefix(java.lang.String text)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-