Package org.dlese.dpc.schemedit.display
Class CollapseUtils
java.lang.Object
org.dlese.dpc.schemedit.display.CollapseUtils
Maintains the state of collapsible nodes in the metadata Editor. States are
OPENED and CLOSED, and the default is controlled by setDefaultState.
- Author:
- ostwald $Id: CollapseUtils.java,v 1.4 2005/01/28 00:15:38 ostwald Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic StringConverts an ID like that generated byto an xpath that will identify the xml element associated with the id.invalid reference
org.dlese.dpc.schemedit.SchemEditUtils#pathToIdstatic StringConverts a paramName and fieldLabel to an ID that can be used in javascript.static StringConverts an xpath to an ID that can be used in javascript.protected final voidDescription of the Method
-
Constructor Details
-
CollapseUtils
public CollapseUtils()
-
-
Method Details
-
pairToId
Converts a paramName and fieldLabel to an ID that can be used in javascript. Used to support collapsible field display in metadata editor.- Parameters:
paramName- Identifier used in metadata editor jsp (e.g., ValueOf(/itemRecord/general))fieldLabel- MetadataVocab Field label that identifies a field grouping within a list of controlled vocab values- Returns:
- ID suitable for use in jsp/javascript
-
idToPath
Converts an ID like that generated byto an xpath that will identify the xml element associated with the id.invalid reference
org.dlese.dpc.schemedit.SchemEditUtils#pathToId- Parameters:
id- Description of the Parameter- Returns:
- Description of the Return Value
-
encodeId
-
decodeId
-
pathToId
Converts an xpath to an ID that can be used in javascript. Used to support collapsible field display in metadata editor. The ID that is generated here can be converted back into an xpath byinvalid reference
org.dlese.dpc.schemedit.SchemEditUtils#idToPath- Parameters:
s- An xpath or a paramName containing an xpath (e.g., ValueOf(/itemRecord/general))- Returns:
- ID suitable for use in jsp/javascript
-
prtln
Description of the Method- Parameters:
s- Description of the Parameter
-