|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.extensions.commons.id.GenerateIDElementsInfo
public class GenerateIDElementsInfo
Information about the list of elements for which to generate auto ID + if the auto ID generation is activated
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ID_GENERATION_PATTERN
The default id generation pattern. |
static java.lang.String |
GENERATE_ID_ELEMENTS_ACTIVE_KEY
The key from options |
static java.lang.String |
GENERATE_ID_ELEMENTS_KEY
The key from options |
static java.lang.String |
GENERATE_ID_PATTERN_KEY
The key from options |
static java.lang.String |
ID_PATTERN_DESCRIPTION
Description for the id pattern macro. |
static java.lang.String |
ID_PATTERN_MACRO
ID pattern macro. |
static java.lang.String |
LOCAL_NAME_PATTERN_DESCRIPTION
Description for the local name pattern macro. |
static java.lang.String |
LOCAL_NAME_PATTERN_MACRO
Local name pattern macro. |
static java.lang.String |
PATTERN_TOOLTIP
The pattern tooltip |
static java.lang.String |
UUID_PATTERN_DESCRIPTION
Description for the uuid pattern macro. |
static java.lang.String |
UUID_PATTERN_MACRO
UUID pattern macro. |
Constructor Summary | |
---|---|
GenerateIDElementsInfo(AuthorAccess authorAccess,
GenerateIDElementsInfo defaultOptions)
Constructor. |
|
GenerateIDElementsInfo(boolean autoGenerateIds,
java.lang.String idGenerationPattern,
java.lang.String[] elementsWithIDGeneration)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
generateID(java.lang.String idGenerationPattern,
java.lang.String elementLocalName)
Generate an ID from a pattern for the specified element. |
static java.lang.String |
generateUniqueID()
|
java.lang.String[] |
getElementsWithIDGeneration()
|
java.lang.String |
getIdGenerationPattern()
|
boolean |
isAutoGenerateIDs()
|
void |
saveToOptions(AuthorAccess authorAccess)
Save to persistent options |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GENERATE_ID_ELEMENTS_KEY
public static final java.lang.String GENERATE_ID_ELEMENTS_ACTIVE_KEY
public static final java.lang.String GENERATE_ID_PATTERN_KEY
public static final java.lang.String LOCAL_NAME_PATTERN_MACRO
public static final java.lang.String LOCAL_NAME_PATTERN_DESCRIPTION
public static final java.lang.String UUID_PATTERN_MACRO
public static final java.lang.String ID_PATTERN_MACRO
public static final java.lang.String UUID_PATTERN_DESCRIPTION
public static final java.lang.String ID_PATTERN_DESCRIPTION
public static final java.lang.String DEFAULT_ID_GENERATION_PATTERN
public static java.lang.String PATTERN_TOOLTIP
Constructor Detail |
---|
public GenerateIDElementsInfo(AuthorAccess authorAccess, GenerateIDElementsInfo defaultOptions)
authorAccess
- The author accessdefaultOptions
- The default options.public GenerateIDElementsInfo(boolean autoGenerateIds, java.lang.String idGenerationPattern, java.lang.String[] elementsWithIDGeneration)
autoGenerateIds
- True to auto generate IDsidGenerationPattern
- The pattern for id generation.elementsWithIDGeneration
- List of elements for which to generate IDsMethod Detail |
---|
public boolean isAutoGenerateIDs()
public java.lang.String getIdGenerationPattern()
public java.lang.String[] getElementsWithIDGeneration()
public void saveToOptions(AuthorAccess authorAccess)
authorAccess
- The author accesspublic static java.lang.String generateID(java.lang.String idGenerationPattern, java.lang.String elementLocalName)
idGenerationPattern
- The pattern.elementLocalName
- The element local name
public static java.lang.String generateUniqueID()
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |