IBM WebSphere Adapters User Manual page 160

Version 6 release 2
Table of Contents

Advertisement

getNameSpaces
The getNameSpaces() method returns the NameSpaces listed in the XML schema
definition. Typically these are application specific information schema definition
namespaces. Note that this list is for outside namespaces only; child object
namespaces are included by the Adapter Foundation Classes.
getASISchemaName
The getASISchemaName() method returns the target namespace that represents the
application specific information schema.
getCardinality
The getCardinality() method returns the cardinality for an elements in the
business object definition. This value is used to formulate the maxOccurs and
minOccurs tag.
getMaxLength
The getMaxLength() method returns the maxLength for the elements in the
business object definition. This is used to fill in the maxLength tag for the XML
schema definition.
getRequired
The getRequired() method returns true if the element is marked as required in the
XML schema definition. Otherwise, this method returns false.
public boolean getRequired(String attrName) { return false; }
154
WebSphere Adapters: WebSphere Adapter Toolkit User Guide
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodExit
return list;
}
public List getNameSpaces() {
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodEntrance
ArrayList list = new ArrayList();
list.add(new QName(Constants.ASI_TARGET_NAMESPACE, Constants.ASI));
WBIMetadataDiscoveryImpl.getLogUtils().traceMethodExit
return list;
}
public String getASISchemaName() {
return Constants.ASI_TARGET_NAMESPACE;
}
public String getCardinality(String attrName) {
TwineBallAttribute definition =
(TwineBallAttribute) this.getAttributeList().get(attrName);
if (definition.isChild)
return Constants.N_CARDINALITY;
else
return "1";
}
public int getMaxLength(String name) {
return 0;
}
(CLASSNAME, "getImportNameSpaces");
(CLASSNAME, "getNameSpaces");
(CLASSNAME, "getNameSpaces");

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Websphere adapter toolkit

Table of Contents