|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.analytics.DataSource
public class DataSource
Describes a data source.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
DataSource()
Default mutable constructor. |
|
| Method Summary | |
|---|---|
void |
addProperty(Property property)
Adds a new property. |
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable. |
java.util.List<Property> |
getProperties()
Returns the properties. |
java.lang.String |
getProperty(java.lang.String name)
Retrieves the value of the property with the given name. |
TableId |
getTableId()
Returns the data source ID. |
TableName |
getTableName()
Returns the table name. |
boolean |
hasProperties()
Returns whether it has the properties. |
boolean |
hasTableId()
Returns whether it has the data source ID. |
boolean |
hasTableName()
Returns whether it has the table name. |
void |
setTableId(TableId tableId)
Sets the data source ID. |
void |
setTableName(TableName tableName)
Sets the table name. |
java.lang.String |
toString()
|
protected void |
validate()
Checks the attributes to see if there are any problems. |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
consumeAttributes, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataSource()
| Method Detail |
|---|
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.public java.util.List<Property> getProperties()
public void addProperty(Property property)
property - propertypublic boolean hasProperties()
public TableId getTableId()
public void setTableId(TableId tableId)
tableId - data source ID or null to resetpublic boolean hasTableId()
public TableName getTableName()
public void setTableName(TableName tableName)
tableName - table name or null to resetpublic boolean hasTableName()
protected void validate()
AbstractExtension
validate in class AbstractExtension
public static ExtensionDescription getDefaultDescription(boolean required,
boolean repeatable)
required - whether it is requiredrepeatable - whether it is repeatable
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getProperty(java.lang.String name)
name - The name of the property to retrieve
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||