com.ibm.j2ca.extension.emd.description
Class BusinessObjectAttributeDefinition
java.lang.Object
com.ibm.j2ca.extension.emd.description.BusinessObjectAttributeDefinition
- public class BusinessObjectAttributeDefinition
- extends java.lang.Object
Represent a Business Object Attribute defintion. In terms of XSD maps to a
element defintion within a complexType. Holds information like name, type,
cardinality, metadata, maxlength.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BusinessObjectAttributeDefinition
public BusinessObjectAttributeDefinition()
getObjectTypeName
public java.lang.String getObjectTypeName()
- The ObjectTypeName for cases where business object attribute maps to a
complexType.
- Returns:
- Returns the objectTypeName.
setObjectTypeName
public void setObjectTypeName(java.lang.String objectTypeName)
- Parameters:
objectTypeName
- The objectTypeName for case where attribute maps to a
complexType.
getCardinality
public java.lang.String getCardinality()
- Returns:
- cardinality The cardinality of the BO attribute.
setCardinality
public void setCardinality(java.lang.String cardinality)
- Parameters:
cardinality
- The cardinality of the BO Attribute
getMetadata
public WBIMetadata getMetadata()
- Returns:
- Metadata The metadata object for the BO attribute.
setMetadata
public void setMetadata(WBIMetadata metadata)
- Parameters:
metadata
- The metadata object for the attribute
getName
public java.lang.String getName()
- Returns:
- name The name of the attribute
setName
public void setName(java.lang.String name)
throws commonj.connector.metadata.MetadataException
- Parameters:
name
- The name of the attribute
- Throws:
commonj.connector.metadata.MetadataException
isRequired
public boolean isRequired()
- Returns:
- required boolean flag representing if value for a BO attribute is
required in the BO instance.
setRequired
public void setRequired(boolean required)
- Parameters:
required
- Boolean flag marking the attribute as required/optional. true
means required, false means optional.
getType
public java.lang.String getType()
- Returns:
- Type - The type of the atttibute. The type used here can be any
element type supported by XSD defintion.
setType
public void setType(java.lang.String type)
- Parameters:
type
- The element type for the BO attribute
getMaxLength
public int getMaxLength()
- Returns:
- maxlength the maximum length for the attribute
setMaxLength
public void setMaxLength(int maxLength)
- Parameters:
maxLength
- The maximum length for the attribute.