|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.naftulin.configmgr.content.AbstractRecordImpl
public abstract class AbstractRecordImpl
Abstract Record implementation combines the most common attributes of the record: file name and key. A record is described in the master configuraion: current implementations include property record, log4j xml or property and external record, all sub-classed from the abstract record.
| Constructor Summary | |
|---|---|
AbstractRecordImpl()
Constructs a record without specifying the key or file name. |
|
AbstractRecordImpl(java.lang.String key,
java.lang.String fileName)
Constructs a record with the key and file name specified. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFileName()
Returns the file name associated with the record. |
java.lang.String |
getKey()
Returns the key associated with the record. |
abstract ConfigEntryParser |
getParser()
Returns the parser that can parse the file to extract the configuration. |
boolean |
isGetUrlForFile()
If configuration is file-base, we need to get the file to be parsed. |
void |
setFileName(java.lang.String fileName)
Sets the file name for the reoord. |
void |
setKey(java.lang.String key)
Sets the key associated with the record. |
java.lang.String |
toString()
Returns the string representation of the record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRecordImpl()
public AbstractRecordImpl(java.lang.String key,
java.lang.String fileName)
key - the key associated with the record.fileName - the file name associated with the record.| Method Detail |
|---|
public boolean isGetUrlForFile()
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - the file name for the record.public java.lang.String getKey()
public void setKey(java.lang.String key)
key - the key associated with the record.
public abstract ConfigEntryParser getParser()
throws ConfigurationManagerException
ConfigurationManagerException - if an error occured while instantiating the parser.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||