Package com.spotfire.ws.im.ds
Class MetadataItem
java.lang.Object
com.spotfire.ws.im.ds.MetadataItem
- Direct Known Subclasses:
ProcedureMetadata
This object represents one level of data source metadata.
A MetadataItem
is described with a type and a name and may have
additional attributes.
The default item types are:
- data-source
- catalog
- schema
- table
- table-alias
- procedure
- column
- Since:
- 3.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The catalog type.static final String
The column type.static final String
The data-source type.static final String
The data-type attribute.static final String
The procedure type.static final String
The procedure column type, NOTE: used in axis api only.static final String
The schema type.static final String
The table type.static final String
The table alias type.static final String
The table reference attribute. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataItem
Creates a newMetadataItem
instance.String[]
Returns an array of all attribute names.getAttributeValue
(String attr) Returns the value of a given attribute.String[]
Returns an array of all attribute values.getName()
Returns the item name.getType()
Returns the item type.void
setAttribute
(String name, String value) Sets an attribute.toString()
Serializes this object for debug purposes.
-
Field Details
-
DATA_SOURCE
The data-source type.- Since:
- 3.0
- See Also:
-
CATALOG
The catalog type.- Since:
- 3.0
- See Also:
-
SCHEMA
The schema type.- Since:
- 3.0
- See Also:
-
TABLE
The table type.- Since:
- 3.0
- See Also:
-
TABLE_ALIAS
The table alias type.- Since:
- 3.0
- See Also:
-
TABLE_REF_ATTR
The table reference attribute.- Since:
- 3.0
- See Also:
-
PROCEDURE
The procedure type.- Since:
- 3.0
- See Also:
-
PROCEDURE_COLUMN
The procedure column type, NOTE: used in axis api only.- Since:
- 3.0
- See Also:
-
COLUMN
The column type.- Since:
- 3.0
- See Also:
-
DATA_TYPE_ATTR
The data-type attribute.- Since:
- 3.0
- See Also:
-
-
Method Details
-
create
Creates a newMetadataItem
instance.- Parameters:
type
- an item typename
- an item name- Returns:
- A new
MetadataItem
instance. - Since:
- 10.1
-
getType
Returns the item type.- Returns:
- an item type
String
- Since:
- 3.0
-
getName
Returns the item name.- Returns:
- an item name
String
- Since:
- 3.0
-
getAttributeNames
Returns an array of all attribute names.- Returns:
- a name
String
array - Since:
- 3.0
-
getAttributeValues
Returns an array of all attribute values.- Returns:
- a value
String
array - Since:
- 3.0
-
getAttributeValue
Returns the value of a given attribute.- Parameters:
attr
- an attribute name- Returns:
- value of a given attribute
- Since:
- 3.0
-
setAttribute
Sets an attribute.- Parameters:
name
- an attribute namevalue
- an attribute value- Since:
- 3.0
-
toString
Serializes this object for debug purposes.
-