Ibm WebSphere Adapters Manuel d'utilisateur Page 159

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 226
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 158
bometadata.setNameSpace(namespace);
bometadata.setObjectNameSpace(Constants.BUS_OBJ_APPINFO_ASI_TYPE_TAG);
bometadata.setASI(Constants.ASI_OBJECTNAME,
this.getMetadataObject().getDisplayName());
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodExit
(CLASSNAME, "getMetadataForBusinessObject");
return bometadata;
} // End of BO level metadata
isContainer
The isContainer() method returns true when the complexType definition requires
a Container definition with the graph definition. The Container definition is used
when the adapter supports a RetrieveAll operation.
public boolean isContainer() {
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodEntrance
(CLASSNAME, "isContainer");
boolean retValue = false;
String objName = getName().getLocalPart();
if (objName.endsWith("Container") && !objName.equals(getBOName()))
retValue = true;
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodExit
(CLASSNAME, "isContainer");
return retValue;
}
getType
The getType() method returns the XML schema definition type that represents the
element or field of the object definition.
public String getType(String attrName) {
if (getCardinality(attrName) == Constants.N_CARDINALITY) {
return attrName.toLowerCase() + ":"
+ StringCaseChanger.toCamelCase(attrName);
}
return Constants.XS_STRING;
}
getAttributeName
The getAttributeName() method returns the element name that represents the field
in the object. This is the element name that would be used in the XML schema
definition.
public String getAttributeName(String attrName) {
return StringCaseChanger.toCamelCase(attrName);
}
getImportNameSpaces
The getImportNameSpaces() method returns a list of ImportedNameSpace instances
that should be imported in the business object schema.
public List getImportNameSpaces() throws MetadataException {
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodEntrance
(CLASSNAME, "getImportNameSpaces");
ArrayList list = new ArrayList();
ImportedNameSpace namespace = new ImportedNameSpace();
namespace.setLocation(Constants.TWINEBALLASI_XSD);
namespace.setNameSpace(Constants.ASI_TARGET_NAMESPACE);
list.add(namespace);
WebSphere Adapter development overview 153
Vue de la page 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 225 226

Commentaires sur ces manuels

Pas de commentaire