|
Oxygen XML Editor 11.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 String |
DEFAULT_ID_GENERATION_PATTERN
The default id generation pattern. |
static String |
GENERATE_ID_ELEMENTS_ACTIVE_KEY
The key from options |
static String |
GENERATE_ID_ELEMENTS_KEY
The key from options |
static String |
GENERATE_ID_PATTERN_KEY
The key from options |
static String |
LOCAL_NAME_PATTERN_DESCRIPTION
Description for the local name pattern macro. |
static String |
LOCAL_NAME_PATTERN_MACRO
Local name pattern macro. |
static String |
UUID_PATTERN_DESCRIPTION
Description for the uuid pattern macro. |
static String |
UUID_PATTERN_MACRO
UUID pattern macro. |
Constructor Summary | |
---|---|
GenerateIDElementsInfo(AuthorAccess authorAccess,
GenerateIDElementsInfo defaultOptions)
Constructor. |
|
GenerateIDElementsInfo(boolean autoGenerateIds,
String idGenerationPattern,
String[] elementsWithIDGeneration)
Constructor. |
Method Summary | |
---|---|
static String |
generateID(String idGenerationPattern,
String elementLocalName)
Generate an ID from a pattern for the specified element. |
String[] |
getElementsWithIDGeneration()
|
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 String GENERATE_ID_ELEMENTS_KEY
public static final String GENERATE_ID_ELEMENTS_ACTIVE_KEY
public static final String GENERATE_ID_PATTERN_KEY
public static final String LOCAL_NAME_PATTERN_MACRO
public static final String LOCAL_NAME_PATTERN_DESCRIPTION
public static final String UUID_PATTERN_MACRO
public static final String UUID_PATTERN_DESCRIPTION
public static final String DEFAULT_ID_GENERATION_PATTERN
Constructor Detail |
---|
public GenerateIDElementsInfo(AuthorAccess authorAccess, GenerateIDElementsInfo defaultOptions)
authorAccess
- The author accessdefaultOptions
- The default options.public GenerateIDElementsInfo(boolean autoGenerateIds, String idGenerationPattern, 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 String getIdGenerationPattern()
public String[] getElementsWithIDGeneration()
public void saveToOptions(AuthorAccess authorAccess)
authorAccess
- The author accesspublic static String generateID(String idGenerationPattern, String elementLocalName)
idGenerationPattern
- The pattern.elementLocalName
- The element local name
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |