org.progeeks.meta
Class ContainerPropertyInfo

java.lang.Object
  extended by org.progeeks.meta.PropertyInfo
      extended by org.progeeks.meta.ContainerPropertyInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, Fixable

public class ContainerPropertyInfo
extends PropertyInfo

Extension of the PropertyInfo interface to provide additional information about container property contents.

Version:
$Revision: 1.8 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.progeeks.meta.PropertyInfo
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
 
Constructor Summary
ContainerPropertyInfo()
          Creates an empty and unfixed property info suitable for bean-like property loading.
ContainerPropertyInfo(ContainerPropertyInfo info, PropertyType type)
           
ContainerPropertyInfo(java.lang.String propertyName, ContainerPropertyInfo info)
           
ContainerPropertyInfo(java.lang.String propertyName, java.lang.String name, PropertyType type)
           
ContainerPropertyInfo(java.lang.String propertyName, java.lang.String name, PropertyType type, boolean writable, boolean resizable)
           
ContainerPropertyInfo(java.lang.String propertyName, java.lang.String name, java.lang.String shortName, java.lang.String description, PropertyType type, int alignment, boolean writable, boolean resizable, boolean mutable)
           
ContainerPropertyInfo(java.lang.String propertyName, java.lang.String name, java.lang.String shortName, java.lang.String description, PropertyType type, int alignment, boolean writable, boolean readable, boolean resizable, boolean mutable)
           
ContainerPropertyInfo(java.lang.String propertyName, java.lang.String name, java.lang.String shortName, java.lang.String description, PropertyType type, java.lang.Object defaultValue, int alignment, boolean writable, boolean readable, boolean resizable, boolean mutable)
           
 
Method Summary
 boolean equals(ContainerPropertyInfo obj)
           
 boolean equals(java.lang.Object obj)
           
 PropertyType getCollectionValueType()
          Returns the current element type of the container info's property type, or null if no property type has been set yet.
 PropertyType getListValueType()
          Returns the current element type of the container info's property type, or null if no property type has been set yet.
 int hashCode()
           
 boolean isMutable()
          Returns true if the elements can be replaced.
 boolean isResizable()
          Returns true if the property supports resizing such as with add or remove.
 PropertyInfo replacePropertyName(java.lang.String name)
          Clones this property info, replacing the property name with the name specified.
 PropertyInfo replacePropertyType(PropertyType type)
          Clones this property info, replacing the property type with the type specified.
 void setCollectionValueType(PropertyType type)
          Sets the element type by wrapping it in a ContainerPropertyType and calling setPropertyType.
 void setListValueType(PropertyType type)
          Sets the element type by wrapping it in a ListPropertyType and calling setPropertyType.
 void setMutable(boolean mutable)
          Sets the mutability of the containers referenced by this property.
 void setResizable(boolean resizable)
          Sets the resizability of the containers referenced by this property.
 java.lang.String toString()
           
 
Methods inherited from class org.progeeks.meta.PropertyInfo
compareTo, equals, getDefaultValue, getDescription, getName, getPropertyAlignment, getPropertyName, getPropertyType, getShortName, getSplitName, isFixed, isReadable, isWritable, setDefaultValue, setDescription, setFixed, setName, setPropertyAlignment, setPropertyName, setPropertyType, setReadable, setShortName, setWritable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerPropertyInfo

public ContainerPropertyInfo()
Creates an empty and unfixed property info suitable for bean-like property loading.


ContainerPropertyInfo

public ContainerPropertyInfo(java.lang.String propertyName,
                             java.lang.String name,
                             java.lang.String shortName,
                             java.lang.String description,
                             PropertyType type,
                             int alignment,
                             boolean writable,
                             boolean readable,
                             boolean resizable,
                             boolean mutable)

ContainerPropertyInfo

public ContainerPropertyInfo(java.lang.String propertyName,
                             java.lang.String name,
                             java.lang.String shortName,
                             java.lang.String description,
                             PropertyType type,
                             java.lang.Object defaultValue,
                             int alignment,
                             boolean writable,
                             boolean readable,
                             boolean resizable,
                             boolean mutable)

ContainerPropertyInfo

public ContainerPropertyInfo(java.lang.String propertyName,
                             java.lang.String name,
                             java.lang.String shortName,
                             java.lang.String description,
                             PropertyType type,
                             int alignment,
                             boolean writable,
                             boolean resizable,
                             boolean mutable)

ContainerPropertyInfo

public ContainerPropertyInfo(java.lang.String propertyName,
                             java.lang.String name,
                             PropertyType type,
                             boolean writable,
                             boolean resizable)

ContainerPropertyInfo

public ContainerPropertyInfo(java.lang.String propertyName,
                             java.lang.String name,
                             PropertyType type)

ContainerPropertyInfo

public ContainerPropertyInfo(java.lang.String propertyName,
                             ContainerPropertyInfo info)

ContainerPropertyInfo

public ContainerPropertyInfo(ContainerPropertyInfo info,
                             PropertyType type)
Method Detail

replacePropertyType

public PropertyInfo replacePropertyType(PropertyType type)
Clones this property info, replacing the property type with the type specified.

Overrides:
replacePropertyType in class PropertyInfo

replacePropertyName

public PropertyInfo replacePropertyName(java.lang.String name)
Clones this property info, replacing the property name with the name specified.

Overrides:
replacePropertyName in class PropertyInfo

setResizable

public void setResizable(boolean resizable)
Sets the resizability of the containers referenced by this property. Calls to this method are only allowed if isFixed() returns false.


isResizable

public boolean isResizable()
Returns true if the property supports resizing such as with add or remove.


setMutable

public void setMutable(boolean mutable)
Sets the mutability of the containers referenced by this property. Calls to this method are only allowed if isFixed() returns false.


isMutable

public boolean isMutable()
Returns true if the elements can be replaced.


setCollectionValueType

public void setCollectionValueType(PropertyType type)
Sets the element type by wrapping it in a ContainerPropertyType and calling setPropertyType. This is a method for convenience in bean-based configurations that can't properly configure a ContainerPropertyType manually.


getCollectionValueType

public PropertyType getCollectionValueType()
Returns the current element type of the container info's property type, or null if no property type has been set yet.


setListValueType

public void setListValueType(PropertyType type)
Sets the element type by wrapping it in a ListPropertyType and calling setPropertyType. This is a method for convenience in bean-based configurations that can't properly configure a ContainerPropertyType manually.


getListValueType

public PropertyType getListValueType()
Returns the current element type of the container info's property type, or null if no property type has been set yet.


equals

public boolean equals(ContainerPropertyInfo obj)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class PropertyInfo

hashCode

public int hashCode()
Overrides:
hashCode in class PropertyInfo

toString

public java.lang.String toString()
Overrides:
toString in class PropertyInfo


Copyright © 2002-2003 Paul Speed. All Rights Reserved.