|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.j2ca.extension.emd.description.WBIDataDescriptionImpl
Implementation for DataDescription interface. Provides utility methods that help in filling the BO structure for serialization.
Constructor Summary | |
---|---|
WBIDataDescriptionImpl()
|
Method Summary | |
---|---|
protected java.lang.String |
createBusinessObjectSchema()
|
java.lang.String |
createContainerDefinition()
Returns a container definition for the BO |
java.lang.String |
createGraphDefinition()
Returns the String representing the Graph definition for the BO |
abstract java.lang.String |
getASISchemaName()
Returns the namespace for the ASI Schema |
java.util.LinkedHashMap |
getAttributeList()
The list of attributes for the BO. |
abstract java.lang.String |
getAttributeName(java.lang.String attrName)
Returns the attribute name that should be added in xsd |
java.lang.String |
getBOName()
Returns the BO name for the data description. |
abstract java.lang.String |
getCardinality(java.lang.String name)
Returns cardinality of the attribute. |
abstract java.util.Iterator |
getChildList()
Returns the list of child objects as an Iterator. |
java.lang.String |
getComment()
|
java.lang.String |
getDataBindingGeneratorClassName()
This method is used by the tooling to get the DataBinding class name |
commonj.connector.metadata.description.DataFile[] |
getDataFiles()
These values are not needed. |
java.lang.String |
getGenericDataBindingClassName()
This method is used by the tool to get the generic data binding class name |
abstract java.util.List |
getImportNameSpaces()
Returns the list of namespaces that should be imported in schema |
abstract int |
getMaxLength(java.lang.String name)
Returns the maxlenght for the attribute |
abstract WBIMetadata |
getMetadataForAttribute(java.lang.String attrName)
Returns the metadata object for the attribute |
abstract WBIMetadata |
getMetadataForBusinessObject()
Returns the BO Level metadata object |
WBIMetadataObjectImpl |
getMetadataObject()
Returns the MetadataObject instance for this description object. |
javax.xml.namespace.QName |
getName()
Returns the namespace for Data Description |
abstract java.util.List |
getNameSpaces()
Returns the list of namespaces that should be included in XSD |
java.lang.String |
getRelativePath()
Returns the relative path for XSDs |
abstract boolean |
getRequired(java.lang.String name)
Returns if the attribute is required or not |
commonj.connector.metadata.description.SchemaDefinition[] |
getSchemaDefinitions()
List of schema defintions. |
abstract java.lang.String |
getType(java.lang.String attrName)
Returns the type for an attribute that should be used for an attribute |
abstract java.util.List |
getVerbs()
Returns the list of verbs that should be added to BGs for a top level BO |
abstract boolean |
isContainer()
Returns if container is needed for this BO defintion |
boolean |
isTopLevel()
Checks if the object is a TopLevel BO This is used to generate Business Graph definitions. |
void |
populateSchemaDefinitions()
This method should be called when the instance of data descriptions are being added to method descriptions and the xsd creation is needed. |
abstract void |
prepareChildSchemaFiles()
If the top level BO creating can cover creating XSD's for all the children that have been selected then this method need not have anything just a dummy implementation would work, but if there is a need for separate and recursive creating of child objects then this method should be implemented. |
protected java.lang.String |
prepareSchemaFiles()
Prepares the schema file for the BO mapping to the data description |
void |
put(java.lang.String namespace,
java.net.URI location,
java.lang.String buffer)
Put the XSD to the list of schema defintions. |
void |
setComment(java.lang.String comment)
|
void |
setDataBindingGeneratorClassName(java.lang.String dataBindingGeneratorClassName)
This parameter is not needed. |
void |
setGenericDataBindingClassName(java.lang.String genericDataBindingClassName)
Use this method to override the name of the default data binding class name provided by the base class. |
void |
setMetadataObject(WBIMetadataObjectImpl metadataObject)
Set the MetadataObject for the data description. |
void |
setName(javax.xml.namespace.QName name)
|
void |
setName(java.lang.String uri,
java.lang.String name)
Sets the namespace for data description |
void |
setRelativePath(java.lang.String relativePath)
Set the relative path that must be used for XSDs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WBIDataDescriptionImpl()
Method Detail |
public void setComment(java.lang.String comment)
comment
- The comment to set.public void setDataBindingGeneratorClassName(java.lang.String dataBindingGeneratorClassName)
dataBindingGeneratorClassName
- The dataBindingGeneratorClassName to set.public commonj.connector.metadata.description.DataFile[] getDataFiles()
getDataFiles
in interface commonj.connector.metadata.description.DataDescription
DataDescription.getDataFiles()
public commonj.connector.metadata.description.SchemaDefinition[] getSchemaDefinitions()
getSchemaDefinitions
in interface commonj.connector.metadata.description.DataDescription
DataDescription.getSchemaDefinitions()
public void setGenericDataBindingClassName(java.lang.String genericDataBindingClassName)
genericDataBindingClassName
- The genericDataBindingClassName to set.public void setName(javax.xml.namespace.QName name)
public java.lang.String getDataBindingGeneratorClassName()
getDataBindingGeneratorClassName
in interface commonj.connector.metadata.description.DataDescription
DataDescription.getDataBindingGeneratorClassName()
public java.lang.String getGenericDataBindingClassName()
getGenericDataBindingClassName
in interface commonj.connector.metadata.description.DataDescription
DataDescription.getGenericDataBindingClassName()
public javax.xml.namespace.QName getName()
getName
in interface commonj.connector.metadata.description.DataDescription
DataDescription.getName()
public void populateSchemaDefinitions() throws commonj.connector.metadata.MetadataException
commonj.connector.metadata.MetadataException
public java.lang.String getComment()
getComment
in interface commonj.connector.metadata.description.DataDescription
DataDescription.getComment()
public abstract java.util.Iterator getChildList() throws commonj.connector.metadata.MetadataException
commonj.connector.metadata.MetadataException
public java.util.LinkedHashMap getAttributeList()
public abstract void prepareChildSchemaFiles() throws commonj.connector.metadata.MetadataException
commonj.connector.metadata.MetadataException
public boolean isTopLevel()
public void setMetadataObject(WBIMetadataObjectImpl metadataObject)
metadataObject
- public WBIMetadataObjectImpl getMetadataObject()
public void put(java.lang.String namespace, java.net.URI location, java.lang.String buffer)
location
- The physical relative locationbuffer
- XSD stringprotected java.lang.String prepareSchemaFiles() throws commonj.connector.metadata.MetadataException
commonj.connector.metadata.MetadataException
public void setRelativePath(java.lang.String relativePath)
relativePath
- public java.lang.String getRelativePath()
protected java.lang.String createBusinessObjectSchema() throws commonj.connector.metadata.MetadataException
commonj.connector.metadata.MetadataException
public java.lang.String createGraphDefinition()
public java.lang.String createContainerDefinition()
public java.lang.String getBOName()
public void setName(java.lang.String uri, java.lang.String name)
uri
- name
- public abstract java.util.List getNameSpaces()
public abstract java.util.List getVerbs()
public abstract java.util.List getImportNameSpaces() throws commonj.connector.metadata.MetadataException
commonj.connector.metadata.MetadataException
public abstract WBIMetadata getMetadataForBusinessObject()
public abstract java.lang.String getAttributeName(java.lang.String attrName)
attrName
-
public abstract java.lang.String getType(java.lang.String attrName)
attrName
-
public abstract WBIMetadata getMetadataForAttribute(java.lang.String attrName)
attrName
-
public abstract boolean isContainer()
public abstract java.lang.String getASISchemaName()
public abstract boolean getRequired(java.lang.String name)
name
-
public abstract java.lang.String getCardinality(java.lang.String name)
name
-
public abstract int getMaxLength(java.lang.String name)
name
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |