org.fcrepo.client.objecteditor
Class Util

java.lang.Object
  extended by org.fcrepo.client.objecteditor.Util

public abstract class Util
extends Object

Some static utility methods that might be needed across several classes in this package.


Constructor Summary
Util()
           
 
Method Summary
static void addRows(JComponent[] left, JComponent[] right, GridBagLayout gridBag, Container container, boolean north, boolean allowStretching)
          Layout the provided components in two columns, each left-aligned, where the left column's cells are as narrow as possible.
static Map getDeploymentLabelMap(String sDefPID)
          Get a map of pid-to-label of service deployments that implement the service defined by the indicated sDef.
static DatastreamInputSpec getInputSpec(String deploymentPID)
           
static Map getInputSpecMap(Set deploymentPIDs)
           
static List getMethodDefinitions(String sDefPID)
          Get the list of MethodDefinition objects defined by the indicated service definition.
static ObjectFields getObjectFields(String pid, String[] fields)
          Get the indicated fields of the indicated object from the repository.
static Map getSDefLabelMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getSDefLabelMap

public static Map getSDefLabelMap()
                           throws IOException
Throws:
IOException

getDeploymentLabelMap

public static Map getDeploymentLabelMap(String sDefPID)
                                 throws IOException
Get a map of pid-to-label of service deployments that implement the service defined by the indicated sDef.

Throws:
IOException

getInputSpecMap

public static Map getInputSpecMap(Set deploymentPIDs)
                           throws IOException
Throws:
IOException

getInputSpec

public static DatastreamInputSpec getInputSpec(String deploymentPID)
                                        throws IOException
Throws:
IOException

getMethodDefinitions

public static List getMethodDefinitions(String sDefPID)
                                 throws IOException
Get the list of MethodDefinition objects defined by the indicated service definition.

Throws:
IOException

getObjectFields

public static ObjectFields getObjectFields(String pid,
                                           String[] fields)
                                    throws IOException
Get the indicated fields of the indicated object from the repository.

Throws:
IOException

addRows

public static void addRows(JComponent[] left,
                           JComponent[] right,
                           GridBagLayout gridBag,
                           Container container,
                           boolean north,
                           boolean allowStretching)
Layout the provided components in two columns, each left-aligned, where the left column's cells are as narrow as possible. If north is true, all cells will be laid out to the NORTHwest. This is useful when some rows' cells aren't the same size vertically. If allowStretching is true, components on the right will be stretched if they can be.



Copyright © 2012 DuraSpace. All Rights Reserved.