|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.adminapi.impl.AdminObjectImpl
org.teiid.adminapi.impl.ModelMetaData
public class ModelMetaData
Nested Class Summary | |
---|---|
static class |
ModelMetaData.ValidationError
|
Nested classes/interfaces inherited from interface org.teiid.adminapi.Model |
---|
Model.Type |
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected java.util.List<ModelMetaData.ValidationError> |
errors
|
protected java.lang.String |
modelType
|
protected java.lang.String |
path
|
protected org.teiid.adminapi.impl.ListOverMap<SourceMappingMetadata> |
sources
|
protected java.lang.Boolean |
visible
|
Fields inherited from interface org.teiid.adminapi.AdminObject |
---|
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD |
Constructor Summary | |
---|---|
ModelMetaData()
|
Method Summary | |
---|---|
ModelMetaData.ValidationError |
addError(java.lang.String severity,
java.lang.String message)
|
void |
addSourceMapping(java.lang.String name,
java.lang.String translatorName,
java.lang.String connJndiName)
|
void |
clearErrors()
|
java.lang.String |
getDescription()
Description about the model |
java.util.List<ModelMetaData.ValidationError> |
getErrors()
|
java.util.List<PropertyMetadata> |
getJAXBProperties()
|
Model.Type |
getModelType()
Retrieve the model type. |
java.lang.String |
getName()
Get the name for this AdminObject, usually the last component of the identifier. |
java.lang.String |
getPath()
|
java.lang.String |
getSourceConnectionJndiName(java.lang.String sourceName)
Get the configured JNDI name for the given source name. |
java.util.List<SourceMappingMetadata> |
getSourceMappings()
|
java.util.List<java.lang.String> |
getSourceNames()
Associated Source Names for the Models |
java.lang.String |
getSourceTranslatorName(java.lang.String sourceName)
Get the configured translator name for the given source |
java.util.List<ModelMetaData.ValidationError> |
getValidationErrors(ModelMetaData.ValidationError.Severity severity)
|
boolean |
isSource()
Determine if this model is a Source model. |
boolean |
isSupportsMultiSourceBindings()
Determine whether this model can support more than one source. |
boolean |
isVisible()
Determine whether this model is exposed for querying. |
boolean |
removeError(ModelMetaData.ValidationError remove)
|
void |
setDescription(java.lang.String description)
|
void |
setErrors(java.util.List<ModelMetaData.ValidationError> errors)
|
void |
setModelType(Model.Type modelType)
|
void |
setModelType(java.lang.String modelType)
|
void |
setName(java.lang.String name)
|
void |
setPath(java.lang.String path)
|
void |
setSourceMappings(java.util.List<SourceMappingMetadata> sources)
|
void |
setSupportsMultiSourceBindings(boolean supports)
|
void |
setVisible(java.lang.Boolean value)
|
java.lang.String |
toString()
|
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl |
---|
addAttchment, addAttchment, addProperty, getAttachment, getAttachment, getProperties, getPropertyValue, removeAttachment, removeAttachment, setJAXBProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.teiid.adminapi.AdminObject |
---|
getProperties, getPropertyValue |
Field Detail |
---|
protected org.teiid.adminapi.impl.ListOverMap<SourceMappingMetadata> sources
protected java.lang.String modelType
protected java.lang.String description
protected java.lang.String path
protected java.lang.Boolean visible
protected java.util.List<ModelMetaData.ValidationError> errors
Constructor Detail |
---|
public ModelMetaData()
Method Detail |
---|
public java.lang.String getName()
AdminObject
getName
in interface AdminObject
getName
in class AdminObjectImpl
public void setName(java.lang.String name)
setName
in class AdminObjectImpl
public java.lang.String getDescription()
Model
getDescription
in interface Model
public void setDescription(java.lang.String description)
public boolean isSource()
Model
isSource
in interface Model
true
if it contains physical group(s).public boolean isVisible()
Model
isVisible
in interface Model
true
if the model is visible
for querying.public Model.Type getModelType()
Model
getModelType
in interface Model
public java.lang.String getPath()
public void setPath(java.lang.String path)
public boolean isSupportsMultiSourceBindings()
Model
isSupportsMultiSourceBindings
in interface Model
true
if this model supports multiple sourcespublic java.util.List<PropertyMetadata> getJAXBProperties()
getJAXBProperties
in class AdminObjectImpl
public void setSupportsMultiSourceBindings(boolean supports)
public void setModelType(Model.Type modelType)
public void setModelType(java.lang.String modelType)
public java.lang.String toString()
toString
in class java.lang.Object
public void setVisible(java.lang.Boolean value)
public java.util.List<SourceMappingMetadata> getSourceMappings()
public void setSourceMappings(java.util.List<SourceMappingMetadata> sources)
public java.util.List<java.lang.String> getSourceNames()
Model
getSourceNames
in interface Model
public java.lang.String getSourceConnectionJndiName(java.lang.String sourceName)
Model
getSourceConnectionJndiName
in interface Model
sourceName
- - name of the source
public java.lang.String getSourceTranslatorName(java.lang.String sourceName)
Model
getSourceTranslatorName
in interface Model
public void addSourceMapping(java.lang.String name, java.lang.String translatorName, java.lang.String connJndiName)
public java.util.List<ModelMetaData.ValidationError> getErrors()
public void setErrors(java.util.List<ModelMetaData.ValidationError> errors)
public java.util.List<ModelMetaData.ValidationError> getValidationErrors(ModelMetaData.ValidationError.Severity severity)
public ModelMetaData.ValidationError addError(java.lang.String severity, java.lang.String message)
public boolean removeError(ModelMetaData.ValidationError remove)
public void clearErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |