org.modeshape.sequencer.teiid
Class VdbManifest
java.lang.Object
org.modeshape.sequencer.teiid.VdbManifest
- All Implemented Interfaces:
- Comparable<VdbManifest>
public class VdbManifest
- extends Object
- implements Comparable<VdbManifest>
The POJO for the vdb.xml file.
VdbManifest
public VdbManifest(String name)
- Parameters:
name
- the VDB name (cannot be null
or empty)
read
public static VdbManifest read(InputStream stream,
Sequencer.Context context)
throws Exception
- Throws:
Exception
compareTo
public int compareTo(VdbManifest that)
- Specified by:
compareTo
in interface Comparable<VdbManifest>
- See Also:
Comparable.compareTo(java.lang.Object)
getDataRoles
public List<VdbDataRole> getDataRoles()
- Returns:
- the data roles found in the VDB (never
null
but can be empty)
getDescription
public String getDescription()
- Returns:
- the description (never
null
but can be empty)
getEntries
public List<VdbEntry> getEntries()
- Returns:
- the entries (never
null
)
getModel
public VdbModel getModel(String path)
- Parameters:
path
- the path of the VDB model being requested (cannot be null
or empty)
- Returns:
- the VDB model or
null
if not found
getModels
public List<VdbModel> getModels()
- Returns:
- the models (never
null
)
getName
public String getName()
- Returns:
- the VDB name (never
null
or empty)
getProperties
public Map<String,String> getProperties()
- Returns:
- the properties (never
null
)
getTranslators
public List<VdbTranslator> getTranslators()
- Returns:
- the translators found in the VDB (never
null
but can be empty)
getVersion
public int getVersion()
- Returns:
- version
modelsInDependencyOrder
public Iterable<VdbModel> modelsInDependencyOrder()
setDescription
public void setDescription(String description)
- Parameters:
description
- Sets description to the specified value.
setVersion
public void setVersion(int version)
- Parameters:
version
- Sets version to the specified value.
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.