public abstract class AbstractNameValueComment
extends java.lang.Object
Constructor and Description |
---|
AbstractNameValueComment(org.codehaus.jackson.JsonParser jp)
Empty constructor
|
AbstractNameValueComment(java.lang.String name,
java.lang.String value)
Creates a new
AbstractNameValueComment object |
AbstractNameValueComment(java.lang.String name,
java.lang.String value,
java.lang.String comment)
Creates a new
AbstractNameValueComment object |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Returns the comment value.
|
java.lang.String |
getName()
Returns the name value.
|
java.lang.String |
getValue()
Returns the value value.
|
void |
setComment(java.lang.String comment)
Sets the comment value.
|
void |
setName(java.lang.String name)
Sets the name value.
|
void |
setValue(java.lang.String value)
Sets the value value.
|
java.lang.String |
toString() |
void |
writeHar(org.codehaus.jackson.JsonGenerator g)
Write this object on a JsonGenerator stream
|
void |
writeJDBC(HarDatabaseConfig config,
long id,
java.sql.PreparedStatement ps,
long logId)
Write this object in the given database referencing the specified id.
|
public AbstractNameValueComment(java.lang.String name, java.lang.String value, java.lang.String comment)
AbstractNameValueComment
objectname
- value
- comment
- public AbstractNameValueComment(java.lang.String name, java.lang.String value)
AbstractNameValueComment
objectname
- value
- public AbstractNameValueComment(org.codehaus.jackson.JsonParser jp) throws org.codehaus.jackson.JsonParseException, java.io.IOException
jp
- a JsonParser already positioned at the beginning of the element
contentorg.codehaus.jackson.JsonParseException
java.io.IOException
public void writeHar(org.codehaus.jackson.JsonGenerator g) throws org.codehaus.jackson.JsonGenerationException, java.io.IOException
g
- a JsonGeneratorjava.io.IOException
- if an IO error occursorg.codehaus.jackson.JsonGenerationException
- if the generator failsHarFileWriter.writeHarFile(HarLog, java.io.File)
public void writeJDBC(HarDatabaseConfig config, long id, java.sql.PreparedStatement ps, long logId) throws java.sql.SQLException
id
- the id this object refers tops
- PreparedStatement to write datajava.sql.SQLException
- if a database access error occurspublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to set.public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- The comment to set.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.