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 ) → javax.swing.tree.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( ) → org.autoplot.datasource.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, 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, 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, String[] path ) → String

properties

properties( java.util.Map meta ) → java.util.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]