public class VdbModel extends Object implements Comparable<VdbModel>
Modifier and Type | Class and Description |
---|---|
static class |
VdbModel.Severity
The 'vdb.cnd' and 'teiid.cnd' files contain a property definition for 'vdb:severity' with these literal values.
|
static class |
VdbModel.ValidationMarker |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_METADATA_TYPE
The default model definition metadata type.
|
Constructor and Description |
---|
VdbModel(String name,
String type,
String pathInVdb) |
Modifier and Type | Method and Description |
---|---|
void |
addImport(String newImport) |
void |
addProblem(String severity,
String path,
String message) |
void |
addProblem(VdbModel.Severity severity,
String path,
String message) |
int |
compareTo(VdbModel that)
The natural order of VDB models is based upon dependencies (e.g., model imports), where models that depends upon other
models will always follow the models they depend on.
|
long |
getChecksum() |
String |
getDescription() |
Set<String> |
getImports() |
String |
getMetadataType() |
String |
getModelDefinition() |
String |
getName() |
String |
getPathInVdb() |
List<VdbModel.ValidationMarker> |
getProblems() |
Map<String,String> |
getProperties() |
String |
getSourceJndiName() |
String |
getSourceName() |
String |
getSourceTranslator() |
String |
getType() |
boolean |
isBuiltIn() |
boolean |
isDeclarative() |
boolean |
isVisible() |
void |
setBuiltIn(boolean builtIn) |
void |
setChecksum(long checksum) |
void |
setDescription(String newValue) |
void |
setMetadataType(String metadataType) |
void |
setModelDefinition(String modelDefinition) |
void |
setSourceJndiName(String sourceJndiName) |
void |
setSourceName(String sourceName) |
void |
setSourceTranslator(String sourceTranslator) |
void |
setVisible(boolean visible) |
public static final String DEFAULT_METADATA_TYPE
public String getDescription()
null
but can be empty)public void setDescription(String newValue)
newValue
- the new description value (can be null
or empty)public String getName()
null
or empty)public String getModelDefinition()
null
or empty)public void setModelDefinition(String modelDefinition)
modelDefinition
- the new model definition (can be null
or empty)public String getMetadataType()
null
or empty when there is no metadata)public void setMetadataType(String metadataType)
metadataType
- the new metadata type (can be null
or empty if default type should be used)public Map<String,String> getProperties()
null
)public String getType()
null
or empty)public boolean isVisible()
public void setVisible(boolean visible)
visible
- Sets visible to the specified value.public boolean isBuiltIn()
public boolean isDeclarative()
true
if model definition is declared in the VDB manifest and not by an XMI filepublic void setBuiltIn(boolean builtIn)
builtIn
- Sets builtIn to the specified value.public long getChecksum()
public void setChecksum(long checksum)
checksum
- Sets checksum to the specified value.public String getPathInVdb()
null
or empty)public String getSourceTranslator()
public void setSourceTranslator(String sourceTranslator)
sourceTranslator
- Sets sourceTranslator to the specified value.public String getSourceJndiName()
public void setSourceJndiName(String sourceJndiName)
sourceJndiName
- Sets sourceJndiName to the specified value.public String getSourceName()
public void setSourceName(String sourceName)
sourceName
- Sets sourceName to the specified value.public Set<String> getImports()
null
but can be empty)public void addImport(String newImport)
newImport
- the model import path being added as an import (cannot be null
or empty)public List<VdbModel.ValidationMarker> getProblems()
null
)public void addProblem(VdbModel.Severity severity, String path, String message)
public int compareTo(VdbModel that)
compareTo
in interface Comparable<VdbModel>
Comparable.compareTo(Object)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.