public class PropertyEntry extends java.lang.Object implements java.lang.Comparable<PropertyEntry>
| Constructor and Description |
|---|
PropertyEntry(PropertyType theEntryType,
java.lang.String theName,
java.lang.String theSection)
Construct a property entry.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PropertyEntry o) |
static java.lang.String |
dotForm(java.lang.String section,
java.lang.String subSection,
java.lang.String name)
Put a property in dot form, which is "section.subsection.name".
|
PropertyType |
getEntryType() |
java.lang.String |
getKey() |
java.lang.String |
getName() |
java.lang.String |
getSection() |
java.lang.String |
toString() |
void |
validate(java.lang.String theSection,
java.lang.String subSection,
java.lang.String theName,
java.lang.String value)
Validate the specified property.
|
public PropertyEntry(PropertyType theEntryType, java.lang.String theName, java.lang.String theSection)
theEntryType - The entry type.theName - The name of the property.theSection - The section of the property.public static java.lang.String dotForm(java.lang.String section,
java.lang.String subSection,
java.lang.String name)
section - The section.subSection - The subsection.name - The name.public int compareTo(PropertyEntry o)
compareTo in interface java.lang.Comparable<PropertyEntry>public PropertyType getEntryType()
public java.lang.String getKey()
public java.lang.String getName()
public java.lang.String getSection()
public java.lang.String toString()
toString in class java.lang.Objectpublic void validate(java.lang.String theSection,
java.lang.String subSection,
java.lang.String theName,
java.lang.String value)
theSection - The section.subSection - The sub section.theName - The name of the property.value - The value of the property.