Arch4J 1.1

org.arch4j.propertytree
Class BasicPropertyBuilder

java.lang.Object
  |
  +--org.arch4j.propertytree.BasicPropertyBuilder
All Implemented Interfaces:
PropertyBuilder

public class BasicPropertyBuilder
extends Object
implements PropertyBuilder


Field Summary
static String PROPERTY_EXTENSION
          defines file extension this builder knows how to parse
 
Constructor Summary
BasicPropertyBuilder()
          null constructor.
 
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
 

Field Detail

PROPERTY_EXTENSION

public static String PROPERTY_EXTENSION
defines file extension this builder knows how to parse

Constructor Detail

BasicPropertyBuilder

public BasicPropertyBuilder()
null constructor. No contect necessary since a new file is passed to each parse call.

Method Detail

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.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.