Package org.freeplane.api
Class MapTagCategoryInstruction
java.lang.Object
org.freeplane.api.MapTagCategoryInstruction
Single explicit edit operation for the map's tag categories.
For
MapTagCategoryInstructionType.ADD_TAG, path is the full
target path to create when targetLocation is
MapTagTargetLocation.CATEGORIZED. Missing parent categorized tags on
that path are created automatically by the same edit call. For categorized
MapTagCategoryInstructionType.MOVE_TAG, missing parent categorized
tags on newParentPath are also created automatically by the same
edit call. When
targetLocation is MapTagTargetLocation.UNCATEGORIZED,
path must contain exactly one segment and Java callers should pass
an empty list for newParentPath.- Since:
- 1.13.3
-
Constructor Summary
ConstructorsConstructorDescriptionMapTagCategoryInstruction(MapTagCategoryInstructionType type, List<String> path, String newName, List<String> newParentPath, MapTagTargetLocation targetLocation, Integer index, String color, String newSeparator) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColor()Returns the replacement color for color updates.getIndex()Returns the optional insertion index for move operations.Returns the replacement name for rename operations.Returns the target parent path for move operations.Returns the replacement category separator.getPath()Returns the target path.Returns the target placement for add and move operations.getType()Returns the operation kind.inthashCode()
-
Constructor Details
-
MapTagCategoryInstruction
public MapTagCategoryInstruction(MapTagCategoryInstructionType type, List<String> path, String newName, List<String> newParentPath, MapTagTargetLocation targetLocation, Integer index, String color, String newSeparator) - Parameters:
type- operation kindpath- target path; for categorized add operations, the full target path to create, not the parent pathnewName- replacement name for rename operationsnewParentPath- target parent path for categorized move operations; an empty list means the top level; missing categorized parents are created automatically; for uncategorized move operations, pass an empty listtargetLocation- target placement for add and move operationsindex- optional insertion index for move operationscolor- replacement color for add and color update operationsnewSeparator- replacement category separator
-
-
Method Details
-
getType
Returns the operation kind. -
getPath
Returns the target path. For categorized add operations, this is the full target path to create. -
getNewName
Returns the replacement name for rename operations. -
getNewParentPath
Returns the target parent path for move operations. -
getTargetLocation
Returns the target placement for add and move operations. -
getIndex
Returns the optional insertion index for move operations. -
getColor
Returns the replacement color for color updates. -
getNewSeparator
Returns the replacement category separator. -
hashCode
public int hashCode() -
equals
-