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.
|
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.
|
convert, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validate
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
- boolean isArray()
boolean isScalarList()
Copyright © 2015 Nuxeo SA. All rights reserved.