public class DataSource extends ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
DataSource()
Default mutable constructor.
|
Modifier and Type | Method and Description |
---|---|
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)
Returns the value of the named property of this entry.
|
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() |
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- 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()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getProperty(java.lang.String name)
value
attribute of the
dxp:property
whose name
attribute matches the argument.
Returns null
if no such property exists.name
- the property to retrieve from this entry