org.arch4j.propertytree
Class BasicPropertyBuilder
java.lang.Object
|
+--org.arch4j.propertytree.BasicPropertyBuilder
- All Implemented Interfaces:
- PropertyBuilder
- public class BasicPropertyBuilder
- extends Object
- implements PropertyBuilder
Method Summary |
ReadOnlyProperty |
buildProperties(String aPathname)
this method accepts a full filepath and then parses that file to return
a Property hierarchy. |
boolean |
canParse(String aPathname)
this method accepts a filename and then determines if this property builder
can build properties from that file, based on its extension. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_EXTENSION
public static String PROPERTY_EXTENSION
- defines file extension this builder knows how to parse
BasicPropertyBuilder
public BasicPropertyBuilder()
- null constructor. No contect necessary since a new file is passed to each parse call.
canParse
public boolean canParse(String aPathname)
- this method accepts a filename and then determines if this property builder
can build properties from that file, based on its extension.
- Specified by:
canParse
in interface PropertyBuilder
- Returns:
- true if this class can create properties from the file
buildProperties
public ReadOnlyProperty buildProperties(String aPathname)
- this method accepts a full filepath and then parses that file to return
a Property hierarchy.
- Specified by:
buildProperties
in interface PropertyBuilder
- Parameters:
aPathname
- full filepath of a file to parse.
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.