Package com.webmethods.caf.common.model
Interface IDocumentStructureProvider
public interface IDocumentStructureProvider
Abstract document structure definition. This information can be used
for variety of purposes, for example for generating a java type
that corresponds to this document structure, or for caching java type
bean info.
This interface does not fully support self-referencing definitions, i.e. a field that references
back to another field of the same document.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static interface
Single document field information -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDocumentStructureProvider.DocumentType
Document type for Integration Server documents.static final IDocumentStructureProvider.DocumentType
Document type that identifies java bean structure.static final IDocumentStructureProvider.DocumentType
Document type for Modeler logical data.static final IDocumentStructureProvider.DocumentType
Document type for document of unknown type system.static final IDocumentStructureProvider.DocumentType
Document type for XML. -
Method Summary
Modifier and TypeMethodDescriptionReturn document structure usingIDocumentStructureProvider.IFieldInfo
for the document itself with the following assumptions:getName
may returnnull
getType
may returnnull
isReadOnly
must returnfalse
isComplexType
must returntrue
isArray
must returnfalse
getFields
must return non-empty arrayReturns document type for this providerReturn URL accessible location of this document if available
-
Field Details
-
DOCTYPE_UNKNOWN
Document type for document of unknown type system. -
DOCTYPE_JAVA
Document type that identifies java bean structure. Field types are actual java class names. No type mapping is required. -
DOCTYPE_IS
Document type for Integration Server documents. Field types are defined in IS type system. Mapping is required. -
DOCTYPE_MODELER
Document type for Modeler logical data. Field types are defined in Modeler logical data type system. Mapping is required. -
DOCTYPE_XML
Document type for XML. Field types are defined in XSD types. Mapping is required.
-
-
Method Details
-
getDocumentInfo
IDocumentStructureProvider.IFieldInfo getDocumentInfo()Return document structure usingIDocumentStructureProvider.IFieldInfo
for the document itself with the following assumptions:getName
may returnnull
getType
may returnnull
isReadOnly
must returnfalse
isComplexType
must returntrue
isArray
must returnfalse
getFields
must return non-empty array
- Returns:
- document structure definition
-
getDocumentType
IDocumentStructureProvider.DocumentType getDocumentType()Returns document type for this provider- Returns:
-
getDocumentURL
String getDocumentURL()Return URL accessible location of this document if available- Returns:
- null if unknown
-