T - the builder subclasspublic abstract class PropertyBuilderSupport<T extends PropertyBuilderSupport<T>> extends Object
Methods may throw a BeanIOConfigurationException if an 
 invalid setting is configured.
| Modifier and Type | Method and Description | 
|---|---|
T | 
collection(Class<?> type)
Sets the collection type bound to this component. 
 | 
protected abstract PropertyConfig | 
getConfig()
Returns the configuration settings. 
 | 
T | 
getter(String getter)
Sets the getter method for getting this component from its parent. 
 | 
T | 
lazy()
Indicates this component should not be instantiated if this component
 or all of its children are null or the empty String. 
 | 
T | 
maxOccurs(int max)
Sets the maximum occurrences of this component. 
 | 
protected abstract T | 
me()
Returns this. 
 | 
T | 
minOccurs(int min)
Sets the minimum occurrences of this component. 
 | 
T | 
occurs(int n)
Sets the exact occurrences of this component. 
 | 
T | 
occurs(int min,
      int max)
Sets the minimum and maximum occurrences of this component. 
 | 
T | 
setter(String setter)
Sets the setter method for setting this component on its parent. 
 | 
T | 
type(Class<?> type)
Sets the class bound to this component. 
 | 
T | 
xmlName(String xmlName)
Sets the XML element or attribute name. 
 | 
T | 
xmlNamespace(String xmlNamespace)
Sets the XML namespace. 
 | 
T | 
xmlPrefix(String xmlPrefix)
Sets the XML namespace prefix. 
 | 
T | 
xmlType(XmlType xmlType)
Sets the XML type of this component. 
 | 
protected abstract T me()
protected abstract PropertyConfig getConfig()
public T minOccurs(int min)
min - the minimum occurrencespublic T maxOccurs(int max)
max - the maximum occurrencespublic T occurs(int n)
n - the number of occurrencespublic T occurs(int min, int max)
min - the minimum occurrencesmax - the maximum occurrences or -1 for unboundedpublic T type(Class<?> type)
type - the classpublic T collection(Class<?> type)
type - the Collection or Map class or subclasspublic T getter(String getter)
getter - the getter method namepublic T setter(String setter)
setter - the setter method namepublic T lazy()
public T xmlType(XmlType xmlType)
xmlType - the XmlTypepublic T xmlPrefix(String xmlPrefix)
xmlPrefix - the prefixpublic T xmlName(String xmlName)
xmlName - the name