org.naftulin.configmgr.content
Class XmlRecordImpl

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

public class XmlRecordImpl
extends AbstractRecordImpl


Constructor Summary
XmlRecordImpl()
          Constructs a record without specifying the key or file name.
XmlRecordImpl(java.lang.String key, java.lang.String fileName, java.lang.String className)
          Constructs a record with the key and file name specified.
 
Method Summary
 java.lang.String getClassName()
           
 ConfigEntryParser getParser()
          Returns an instance of parser that parses a property file and stores it as properties.
 void setClassName(java.lang.String className)
           
 java.lang.String toString()
          Returns the string representation of the xml 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

XmlRecordImpl

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


XmlRecordImpl

public XmlRecordImpl(java.lang.String key,
                     java.lang.String fileName,
                     java.lang.String className)
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.

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

toString

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

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


Copyright © 2009. All Rights Reserved.