Version: ${maven.project.version}

org.soaplab.services.metadata
Class MetadataUtils

java.lang.Object
  extended by org.soaplab.services.metadata.MetadataUtils

public abstract class MetadataUtils
extends java.lang.Object

Some static pieces of code for dealing with analysis metadata.

Version:
$Id: MetadataUtils.java,v 1.7 2007/10/24 14:35:36 marsenger Exp $
Author:
Martin Senger

Constructor Summary
MetadataUtils()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Object> analysisSpec2Map(MetadataAccessor metadataAccessor)
          Convert a set of Analysis attributes into a Map (as defined and used, for example, by Analysis in Soaplab.
static java.util.Map<java.lang.String,java.lang.Object>[] inputSpec2Map(MetadataAccessor metadataAccessor)
          Convert a set of InputPropertyDef's into a Map (as defined and used, for example, by Analysis in Soaplab.
static java.util.Map<java.lang.String,java.lang.Object>[] outputSpec2Map(MetadataAccessor metadataAccessor)
          Convert a set of OutputPropertyDef's into a Map (as defined and used, for example, by Analysis in Soaplab).
static java.lang.String[] parseLauncher(MetadataAccessor metadataAccessor, java.lang.String serviceName, java.lang.Object owner)
          Find the 'launcher' directive in the given metadata, or in the configuration (using given 'serviceName' and the caller), and parse it into a list of two elements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataUtils

public MetadataUtils()
Method Detail

inputSpec2Map

public static java.util.Map<java.lang.String,java.lang.Object>[] inputSpec2Map(MetadataAccessor metadataAccessor)
                                                                        throws SoaplabException
Convert a set of InputPropertyDef's into a Map (as defined and used, for example, by Analysis in Soaplab. The input spec is available from the given 'metadataAccessor'.

Throws:
SoaplabException

outputSpec2Map

public static java.util.Map<java.lang.String,java.lang.Object>[] outputSpec2Map(MetadataAccessor metadataAccessor)
                                                                         throws SoaplabException
Convert a set of OutputPropertyDef's into a Map (as defined and used, for example, by Analysis in Soaplab). The output spec is available from the given 'metadataAccessor'.

Filter out some properties that are not useful for the end-users. But keep there a backdoor: when a property 'show.all.properties' is on, do not filter them.

Throws:
SoaplabException

analysisSpec2Map

public static java.util.Map<java.lang.String,java.lang.Object> analysisSpec2Map(MetadataAccessor metadataAccessor)
                                                                         throws SoaplabException
Convert a set of Analysis attributes into a Map (as defined and used, for example, by Analysis in Soaplab. The attributes are available from the given 'metadataAccessor'.

Filter out some properties that are not useful for the end-users. But keep there a backdoor: when a property 'show.all.properties' is on, do not filter them.

Throws:
SoaplabException

parseLauncher

public static java.lang.String[] parseLauncher(MetadataAccessor metadataAccessor,
                                               java.lang.String serviceName,
                                               java.lang.Object owner)
                                        throws SoaplabException
Find the 'launcher' directive in the given metadata, or in the configuration (using given 'serviceName' and the caller), and parse it into a list of two elements.

Throws:
SoaplabException

Version: ${maven.project.version}

Submit a bug or feature
Generated: Tue Jun 14 15:18:14 AST 2011