|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
Identifies an attribute. The attribute name and type are required.
Use DataDescriptorFactory.createAttribute()
methods to create an Attribute instance.
DataDescriptorFactory
,
DataDescriptor
,
EmbeddedType
Method Summary | |
---|---|
String |
getAttributeName()
Retrieves the name of the attribute. |
AttributeType |
getAttributeType()
Retrieves the type of the attribute. |
EmbeddedType |
getEmbeddedType()
Retrieves the embedded attribute type. |
boolean |
isCollection()
Returns true if the attribute has zero or more values. |
void |
setAttributeName(String attributeName)
Sets the name of the attribute. |
void |
setAttributeType(AttributeType attributeType)
The type of the attribute. |
void |
setCollection(boolean isCollection)
Identifies the attribute as a collection attribute values. |
void |
setEmbeddedType(EmbeddedType embeddedType)
The type of the embedded attribute. |
Method Detail |
---|
String getAttributeName()
void setAttributeName(String attributeName)
Attributes names must include letters, digits and the underscore '_' character. Spaces and special characters are not permitted.
attributeName
- the name of the attribute. Must not be null.
IllegalStateException
- if the attribute has been initialized.AttributeType getAttributeType()
void setAttributeType(AttributeType attributeType)
AttributeType.EMBEDDED
, then the EmbeddedType must also be set.
attributeType
- the type of the attribute. Must not be null.
IllegalStateException
- if the attribute has been initialized.EmbeddedType getEmbeddedType()
void setEmbeddedType(EmbeddedType embeddedType)
AttributeType.EMBEDDED
embeddedType
- the embedded type of the attribute or null if the type is not an EmbeddedType.
IllegalStateException
- if the attribute has been initialized.boolean isCollection()
void setCollection(boolean isCollection)
isCollection
- answrs true if the attribute is a collection.
IllegalStateException
- if the attribute has been initialized.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |