public class CollapseUtils
extends java.lang.Object
Constructor and Description |
---|
CollapseUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decodeId(java.lang.String s) |
static java.lang.String |
encodeId(java.lang.String s) |
static java.lang.String |
idToPath(java.lang.String id)
Converts an ID like that generated by
org.dlese.dpc.schemedit.SchemEditUtils#pathToId to an xpath that will
identify the xml element associated with the id. |
static java.lang.String |
pairToId(java.lang.String paramName,
java.lang.String fieldLabel)
Converts a paramName and fieldLabel to an ID that can be used in
javascript.
|
static java.lang.String |
pathToId(java.lang.String s)
Converts an xpath to an ID that can be used in javascript.
|
protected void |
prtln(java.lang.String s)
Description of the Method
|
public static java.lang.String pairToId(java.lang.String paramName, java.lang.String fieldLabel)
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 valuespublic static java.lang.String idToPath(java.lang.String id)
org.dlese.dpc.schemedit.SchemEditUtils#pathToId
to an xpath that will
identify the xml element associated with the id.id
- Description of the Parameterpublic static java.lang.String encodeId(java.lang.String s)
public static java.lang.String decodeId(java.lang.String s)
public static java.lang.String pathToId(java.lang.String s)
org.dlese.dpc.schemedit.SchemEditUtils#idToPath
s
- An xpath or a paramName containing an xpath (e.g.,
ValueOf(/itemRecord/general))protected final void prtln(java.lang.String s)
s
- Description of the Parameter