public interface PropertyInfoList extends java.lang.Iterable<PropertyInfo>
| Modifier and Type | Method and Description |
|---|---|
PropertyInfo |
get(java.lang.String name)
Gets information for a specific named property.
|
boolean |
hasNoInheritableProperties()
Returns tree if any properties in this list are inheritable.
|
java.util.Iterator<PropertyInfo> |
iterator()
Returns an iterator over all PropertyInfo structures contained in this
list.
|
int |
size()
Returns the number of properties described in this list.
|
boolean |
writeNonDefaultProps(HasProperties host,
java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes properties in this list whose current values differ from their
default values to a PrintWriter.
|
PropertyInfo get(java.lang.String name)
null is returned.name - name of the propertyjava.util.Iterator<PropertyInfo> iterator()
iterator in interface java.lang.Iterable<PropertyInfo>int size()
boolean hasNoInheritableProperties()
boolean writeNonDefaultProps(HasProperties host, java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
PropertyList.writeProps(maspack.properties.HasProperties, java.io.PrintWriter, maspack.util.NumberFormat, java.lang.Object); in particular only those
properties for which PropertyInfo.getAutoWrite() returns true are
written.host - class exporting the propertiespw - PrintWriter to which properties are writtenfmt - Numeric formatting information. This is only used when the value to be
written is itself Scannable, in which case
it is passed to that value's write
method.ref - Reference object. This is only used when the value to be
written is itself Scannable, in which case
it is passed to that value's write
method.java.io.IOException - if an I/O error occurred writing to the stream