org.naftulin.configmgr.content
Class PropertyRecordImpl

java.lang.Object
  extended by org.naftulin.configmgr.content.AbstractRecordImpl
      extended by org.naftulin.configmgr.content.PropertyRecordImpl

public class PropertyRecordImpl
extends AbstractRecordImpl


Constructor Summary
PropertyRecordImpl()
          Constructs a record without specifying the key or file name.
PropertyRecordImpl(java.lang.String key, java.lang.String fileName)
          Constructs a record with the key and file name specified.
 
Method Summary
 ConfigEntryParser getParser()
          Returns an instance of parser that parses a property file and stores it as properties.
 java.lang.String toString()
          Returns the string representation of the property record.
 
Methods inherited from class org.naftulin.configmgr.content.AbstractRecordImpl
getFileName, getKey, isGetUrlForFile, setFileName, setKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyRecordImpl

public PropertyRecordImpl()
Constructs a record without specifying the key or file name.


PropertyRecordImpl

public PropertyRecordImpl(java.lang.String key,
                          java.lang.String fileName)
Constructs a record with the key and file name specified.

Parameters:
key - the key associated with the record.
fileName - the file name associated with the record.
Method Detail

getParser

public ConfigEntryParser getParser()
Returns an instance of parser that parses a property file and stores it as properties.

Specified by:
getParser in class AbstractRecordImpl
Returns:
the parser that can parse the file to extract the configuration.

toString

public java.lang.String toString()
Returns the string representation of the property record.

Overrides:
toString in class AbstractRecordImpl
Returns:
the string representation of the property record.


Copyright © 2009. All Rights Reserved.