|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.spotfire.ws.im.ds.MetadataItem
public class MetadataItem
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:
| Field Summary | |
|---|---|
static String |
CATALOG
The catalog type |
static String |
COLUMN
The column type |
static String |
DATA_SOURCE
The data-source type |
static String |
DATA_TYPE_ATTR
The data-type attribute |
static String |
PROCEDURE
The procedure type |
static String |
PROCEDURE_COLUMN
The procedure column type, NOTE: used in axis api only |
static String |
SCHEMA
The schema type |
static String |
TABLE
The table type |
static String |
TABLE_ALIAS
The table alias type |
static String |
TABLE_REF_ATTR
The table reference attribute |
| Constructor Summary | |
|---|---|
MetadataItem(String type,
String name)
Creates a new MetadataItem instance at a non-terminal
level. |
|
MetadataItem(String type,
String name,
boolean terminal)
Creates a new MetadataItem instance. |
|
| Method Summary | |
|---|---|
static MetadataItem |
fromXML(Element e)
Create a MetadataItem from an XML representation. |
String[] |
getAttributeNames()
Returns an array of all attribute names. |
String |
getAttributeValue(String attr)
Returns the value of a given attribute. |
String[] |
getAttributeValues()
Returns an array of all attribute values. |
String |
getName()
Returns the item name. |
String |
getType()
Returns the item type. |
boolean |
isTerminal()
Tells if this item represents a terminal level, i.e. contains no children. |
void |
setAttribute(String name,
String value)
Sets an attribute. |
String |
toString()
Serializes this object for debug purposes. |
Element |
toXML()
Returns the XML representation of this item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DATA_SOURCE
public static final String CATALOG
public static final String SCHEMA
public static final String TABLE
public static final String TABLE_ALIAS
public static final String TABLE_REF_ATTR
public static final String PROCEDURE
public static final String PROCEDURE_COLUMN
public static final String COLUMN
public static final String DATA_TYPE_ATTR
| Constructor Detail |
|---|
public MetadataItem(String type,
String name)
MetadataItem instance at a non-terminal
level.
type - an item typename - an item name
public MetadataItem(String type,
String name,
boolean terminal)
MetadataItem instance.
type - an item typename - an item nameterminal - if true, this level contains no child items| Method Detail |
|---|
public String getType()
Stringpublic String getName()
Stringpublic boolean isTerminal()
true if item level is terminal,
false otherwisepublic String[] getAttributeNames()
String arraypublic String[] getAttributeValues()
String arraypublic String getAttributeValue(String attr)
attr - an attribute name
public void setAttribute(String name,
String value)
name - an attribute namevalue - an attribute valuepublic Element toXML()
XMLFormatException - if an error should occur when creating the XML.public static MetadataItem fromXML(Element e)
e - the XML representation of a MetadataItem.
XMLParseExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||