|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListType
A list of typed objects.
The List type can validate java array
and/or java
Collection
.
Field Summary |
---|
Fields inherited from interface org.nuxeo.ecm.core.schema.types.Type |
---|
ANY |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.nuxeo.ecm.core.schema.types.Type |
---|
decode, encode, getHelper, getName, getSchema, getSchemaName, getSuperType, getTypeHierarchy, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSimpleType, isSuperTypeOf, newInstance, validate |
Methods inherited from interface org.nuxeo.ecm.core.schema.types.ValueConverter |
---|
convert |
Method Detail |
---|
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
getRef
in interface Type
boolean isArray()
boolean isScalarList()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |