public interface ListType extends Type
The List type can validate java array
and/or java
Collection
.
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue()
Gets the default value of the list elements, if any.
|
Field |
getField()
Get the field defining the elements stored by this list.
|
String |
getFieldName()
The field name if any was specified.
|
Type |
getFieldType()
Get the field describing the element type the list accept.
|
int |
getMaxCount()
Gets the required maximum count of allowed elements in this list.
|
int |
getMinCount()
Gets the required minimum count of elements in this list.
|
TypeRef<ListType> |
getRef()
Gets a proxy (or reference to this type).
|
boolean |
isArray()
Whether the instances of this list are arrays.
|
boolean |
isScalarList()
This method is provided for compatibility.
|
void |
setDefaultValue(String value)
Sets the default value encoded as a string.
|
void |
setLimits(int minOccurs,
int maxOccurs)
Sets list limits.
|
decode, encode, getHelper, getName, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSimpleType, isSuperTypeOf, newInstance, validate
convert
Type getFieldType()
String getFieldName()
This is used to more for outputting the list as XML and for compatibility with XSD.
Field getField()
int getMinCount()
int getMaxCount()
Object getDefaultValue()
void setDefaultValue(String value)
value
- void setLimits(int minOccurs, int maxOccurs)
minOccurs
- maxOccurs
- TypeRef<ListType> getRef()
Type
boolean isArray()
boolean isScalarList()
Copyright © 2011 Nuxeo SA. All Rights Reserved.