| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jplate.kvp.parser.impl.defaults.DefaultKvpParseContext
public class DefaultKvpParseContext
Default implementation of KvpParseIfc.
Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/kvp/parser/impl/defaults/DefaultKvpParseContext.java $
    
| Field Summary | |
|---|---|
private  java.lang.String | 
_key
The parsed key.  | 
private  int | 
_keyColumn
The column where key was found.  | 
private  int | 
_keyLine
The line where key was found.  | 
private  org.apache.commons.logging.Log | 
_log
Used for logging.  | 
private  java.lang.String | 
_value
The parsed value.  | 
private  int | 
_valueColumn
The column where value was found.  | 
private  int | 
_valueLine
The line where value was found.  | 
| Constructor Summary | |
|---|---|
DefaultKvpParseContext()
Default constructor.  | 
|
DefaultKvpParseContext(DefaultKvpParseContext toCopy)
This is the copy constructor.  | 
|
| Method Summary | |
|---|---|
 DefaultKvpParseContext | 
createCopy()
Creates a copy of self.  | 
 DefaultKvpParseContext | 
createInstance()
Creates a new instance of self (non populated).  | 
 java.lang.String | 
getKey()
Return the key.  | 
 int | 
getKeyColumn()
Return the column where key was found. | 
 int | 
getKeyLine()
Return the line where key was found. | 
 java.lang.String | 
getValue()
Return the value.  | 
 int | 
getValueColumn()
Return the column where value was found. | 
 int | 
getValueLine()
Return the line where value was found. | 
 void | 
populate(KvpIfc kvp)
Use the values contained within to populatete kvp. | 
 void | 
setKey(java.lang.String key,
       int line,
       int column)
This method sets information about the key.  | 
 void | 
setValue(java.lang.String value,
         int line,
         int column)
This method sets information about the value.  | 
 java.lang.String | 
toString()
 | 
 java.lang.String | 
toString(java.lang.String prepend)
Returns a string representation of self prepending prepend to
 each line. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private final transient org.apache.commons.logging.Log _log
private java.lang.String _key
private int _keyLine
private int _keyColumn
private java.lang.String _value
private int _valueLine
private int _valueColumn
| Constructor Detail | 
|---|
public DefaultKvpParseContext(DefaultKvpParseContext toCopy)
public DefaultKvpParseContext()
| Method Detail | 
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String prepend)
prepend to
 each line.
toString in interface FormattableIfcprepend - The text to prepend to each line as defined in the return
        value.
prepend
         prepended to each line.public DefaultKvpParseContext createCopy()
createCopy in interface PrototypeIfc<DefaultKvpParseContext>public DefaultKvpParseContext createInstance()
createInstance in interface PrototypeIfc<DefaultKvpParseContext>public java.lang.String getKey()
getKey in interface KvpParseContextIfc<DefaultKvpParseContext>public int getKeyLine()
key was found.
getKeyLine in interface KvpParseContextIfc<DefaultKvpParseContext>key was found.public int getKeyColumn()
key was found.
getKeyColumn in interface KvpParseContextIfc<DefaultKvpParseContext>key was found.
public void setKey(java.lang.String key,
                   int line,
                   int column)
setKey in interface KvpParseContextIfc<DefaultKvpParseContext>key - The key encountered.line - The line where key begins.column - The column number where key begins.public java.lang.String getValue()
getValue in interface KvpParseContextIfc<DefaultKvpParseContext>public int getValueLine()
value was found.
getValueLine in interface KvpParseContextIfc<DefaultKvpParseContext>value was found.public int getValueColumn()
value was found.
getValueColumn in interface KvpParseContextIfc<DefaultKvpParseContext>value was found.
public void setValue(java.lang.String value,
                     int line,
                     int column)
setValue in interface KvpParseContextIfc<DefaultKvpParseContext>value - The value encountered.line - The line where value begins.column - The column number where value begins.public void populate(KvpIfc kvp)
kvp.
populate in interface KvpParseContextIfc<DefaultKvpParseContext>kvp - The key/value pair to populate.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||