javax.datamining.data
Interface PhysicalAttributeFactory

All Superinterfaces:
Factory

public interface PhysicalAttributeFactory
extends Factory

A factory class that creates instances of PhysicalAttribute.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Factory

Method Summary
 PhysicalAttribute[] create(java.lang.String[] attrNameArray, AttributeDataType dataType)
          Creates an array of PhysicalAttribute with the given names and the attribute representation.
 PhysicalAttribute create(java.lang.String attrName, AttributeDataType dataType)
          Creates an instance of PhysicalAttribute with the given name and attribute representation.
 PhysicalAttribute create(java.lang.String attrName, AttributeDataType dataType, PhysicalAttributeRole role)
          Creates an instance of PhysicalAttribute with the given name, attribute representation and role.
 boolean supportsCapability(PhysicalAttributeCapability capability)
          Returns true if the specified capability is supported by the implementation.
 

Method Detail

create

public PhysicalAttribute[] create(java.lang.String[] attrNameArray,
                                  AttributeDataType dataType)
                           throws JDMException
Creates an array of PhysicalAttribute with the given names and the attribute representation. By default the attribute role will be data. The array size indicates the number of attributes to be created.

Parameters:
attrNameArray -
dataType -
Returns:
PhysicalAttribute[]
Throws:
JDMException

create

public PhysicalAttribute create(java.lang.String attrName,
                                AttributeDataType dataType)
                         throws JDMException
Creates an instance of PhysicalAttribute with the given name and attribute representation. By default the attribute role will be systemDefault.

Parameters:
attrName -
dataType - The data type of the physical attribute.
Returns:
PhysicalAttribute
Throws:
JDMException

create

public PhysicalAttribute create(java.lang.String attrName,
                                AttributeDataType dataType,
                                PhysicalAttributeRole role)
                         throws JDMException
Creates an instance of PhysicalAttribute with the given name, attribute representation and role.

Parameters:
attrName -
dataType - The data type of the physical attribute.
role - The role of the physical attribute that specifies the kind of the data the attribute represents.
Returns:
PhysicalAttribute
Throws:
JDMException

supportsCapability

public boolean supportsCapability(PhysicalAttributeCapability capability)
                           throws JDMException
Returns true if the specified capability is supported by the implementation. Returns false otherwise.

Parameters:
capability - The capability in question.
Returns:
boolean
Throws:
JDMException