org.autoplot.datasource.MetadataModel

Maps various metadata models to set of canonical name/value pairs See QDataSet properties for list of properties.

MetadataModel( )


copyTree

copyTree( javax.swing.tree.TreeModel src ) → TreeModel

method for copying tree when the tree does not provide random access.

Parameters

src - a TreeModel

Returns:

a javax.swing.tree.TreeModel

[search for examples] [view on GitHub] [view on old javadoc] [view source]


createNullModel

createNullModel( ) → MetadataModel

Returns:

org.autoplot.datasource.MetadataModel

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getLabel

getLabel( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getNode

getNode( java.util.Map tree, java.lang.String[] path ) → Object

drills down through the Maps. This returns value.

Parameters

tree - a java.util.Map
path - a java.lang.String[]

Returns:

an Object

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getNodeValue

getNodeValue( java.util.Map tree, java.lang.String[] path ) → String

drills down through the Maps. This returns value.

Parameters

tree - a java.util.Map
path - a java.lang.String[]

Returns:

a String

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getNodeValue( javax.swing.tree.TreeModel tree, java.lang.String[] path ) → String

properties

properties( java.util.Map meta ) → Map

Derive QDataSet properties from inspection of the metadata tree. DEPEND_0, etc are Map<String,Object>.

Parameters

meta - model provided by DataSource

Returns:

Map with properties such as QDataSet.TITLE

[search for examples] [view on GitHub] [view on old javadoc] [view source]