public class BwProperty extends DbItem<BwProperty>
vals| Constructor and Description |
|---|
BwProperty()
Constructor
|
BwProperty(String name,
String value)
Create a string by specifying all its fields
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkNulls()
Check this is properly trimmed
|
Object |
clone()
Make visible
|
int |
compareTo(BwProperty that) |
static BwProperty |
findName(String name,
Collection<BwProperty> c)
Search the collection for a string that matches the given name.
|
String |
getName()
Get the name
|
String |
getValue()
Get the value
|
int |
hashCode() |
void |
setName(String val)
Set the name
|
void |
setValue(String val)
Set the value
|
String |
toString() |
protected void |
toStringSegment(org.bedework.util.misc.ToString ts)
Add our stuff to the StringBuilder
|
boolean |
update(BwProperty from)
Figure out what's different and update it.
|
equals, getId, getSeq, setId, setSeq, unsavedasMap, asString, getMap, getProperties, getVals, init, may, mayBool, mayInt, mayList, mayList, must, mustList, setBoolean, setInt, setObject, setProperties, setStringpublic void setName(String val)
val - String namepublic String getName()
public void setValue(String val)
val - String valuepublic String getValue()
public static BwProperty findName(String name, Collection<BwProperty> c)
We return the first one we found.
name - c - public boolean update(BwProperty from)
from - public boolean checkNulls()
public int compareTo(BwProperty that)
compareTo in interface Comparable<BwProperty>compareTo in class DbItem<BwProperty>public int hashCode()
hashCode in class DbItem<BwProperty>protected void toStringSegment(org.bedework.util.misc.ToString ts)
DbItemtoStringSegment in class DbItem<BwProperty>ts - StringBuilder for resultpublic Object clone()
DbItemclone in class DbItem<BwProperty>Copyright © 2019 Bedework. All rights reserved.