public class Util
extends java.lang.Object
Util
...Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
STANDARD_LABEL_CHAR_MAPPING
The list of characters that are valid label characters
|
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static MutableActivity |
copy(Activity obj) |
static MutableActivityObject |
copy(ActivityObject obj) |
static MutableMediaLink |
copy(MediaLink obj) |
static java.lang.String |
createValidName(java.lang.String title)
Create a valid label out of an arbitrary string.
|
static java.lang.String |
createValidName(java.lang.String title,
java.lang.String[] labelCharMapping)
Create a valid label out of an arbitrary string with a custom character
mapping.
|
public static final java.lang.String[] STANDARD_LABEL_CHAR_MAPPING
public static MutableActivityObject copy(ActivityObject obj)
public static MutableActivity copy(Activity obj)
public static MutableMediaLink copy(MediaLink obj)
public static java.lang.String createValidName(java.lang.String title)
createValidName(String, String[])
using
STANDARD_LABEL_CHAR_MAPPING
.title
- title to convert into a namepublic static java.lang.String createValidName(java.lang.String title, java.lang.String[] labelCharMapping)
title
- title to convert into a namelabelCharMapping
- a mapping of chars (index of the array) to strings that should
be used as replacement for the charactersCopyright © 2010 - 2020 Adobe. All Rights Reserved