Package com.webmethods.caf.common.model
Interface IDocumentStructureProvider.IFieldInfo
- All Known Subinterfaces:
JavaDocumentStructureBuilder.IJavaTypeFieldInfo
- Enclosing interface:
- IDocumentStructureProvider
public static interface IDocumentStructureProvider.IFieldInfo
Single document field information
-
Method Summary
Modifier and TypeMethodDescriptionIfisComplexType()
istrue
, return non empty array of fields.getName()
Field name.getType()
Type of the field.boolean
isArray()
Returntrue
if this field is an array ofgetType()
elements.boolean
Returntrue
if this field represents a complex type, i.e.boolean
Returntrue
if this field is readonly
-
Method Details
-
getName
String getName()Field name. Must not benull
- Returns:
- field name
-
getType
String getType()Type of the field. May returnnull
if type is unknown or ifisComplexType()
istrue
. May return type from any type system. The client is responsible for mapping to the target type system.- Returns:
- field type or
null
if unknown
-
isReadOnly
boolean isReadOnly()Returntrue
if this field is readonly- Returns:
false
for writable fields
-
isComplexType
boolean isComplexType()Returntrue
if this field represents a complex type, i.e. a type that is constructed from other fields. In this case the client expects that the structure of this complex type is defined inplace, i.e. the client does not have any knowlendge how to de-reference the complex type automatically. It is the responsibility of the provider to make such resolution and provide non-emptygetFields()
array.- Returns:
false
ifgetFields()
returns null or empty array
-
isArray
boolean isArray()Returntrue
if this field is an array ofgetType()
elements.- Returns:
false
ifgetFields()
returnsnull
or empty array
-
getFields
IDocumentStructureProvider.IFieldInfo[] getFields()IfisComplexType()
istrue
, return non empty array of fields.- Returns:
- null for simple fields
-