fedora.client.objecteditor
Class Util

java.lang.Object
  extended by fedora.client.objecteditor.Util

public abstract class Util
extends java.lang.Object

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


Constructor Summary
Util()
           
 
Method Summary
static void addRows(javax.swing.JComponent[] left, javax.swing.JComponent[] right, java.awt.GridBagLayout gridBag, java.awt.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 java.util.Map getBDefLabelMap()
           
static java.util.Map getBMechLabelMap(java.lang.String bDefPID)
          Get a map of pid-to-label of behavior mechanisms that implement the behavior defined by the indicated bdef.
static DatastreamInputSpec getInputSpec(java.lang.String bMechPID)
           
static java.util.Map getInputSpecMap(java.util.Set bMechPIDs)
           
static java.util.List getMethodDefinitions(java.lang.String bDefPID)
          Get the list of MethodDefinition objects defined by the indicated behavior definition.
static ObjectFields getObjectFields(java.lang.String pid, java.lang.String[] fields)
          Get the indicated fields of the indicated object from the repository.
 
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

getBDefLabelMap

public static java.util.Map getBDefLabelMap()
                                     throws java.io.IOException
Throws:
java.io.IOException

getBMechLabelMap

public static java.util.Map getBMechLabelMap(java.lang.String bDefPID)
                                      throws java.io.IOException
Get a map of pid-to-label of behavior mechanisms that implement the behavior defined by the indicated bdef.

Throws:
java.io.IOException

getInputSpecMap

public static java.util.Map getInputSpecMap(java.util.Set bMechPIDs)
                                     throws java.io.IOException
Throws:
java.io.IOException

getInputSpec

public static DatastreamInputSpec getInputSpec(java.lang.String bMechPID)
                                        throws java.io.IOException
Throws:
java.io.IOException

getMethodDefinitions

public static java.util.List getMethodDefinitions(java.lang.String bDefPID)
                                           throws java.io.IOException
Get the list of MethodDefinition objects defined by the indicated behavior definition.

Throws:
java.io.IOException

getObjectFields

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

Throws:
java.io.IOException

addRows

public static void addRows(javax.swing.JComponent[] left,
                           javax.swing.JComponent[] right,
                           java.awt.GridBagLayout gridBag,
                           java.awt.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.