Class AbstractPrimitive
- All Implemented Interfaces:
Comparable<IPrimitive>,IQuadBucketType,IFilterablePrimitive,IPrimitive,PrimitiveId,Stylable,Tagged
- Direct Known Subclasses:
OsmPrimitive,PrimitiveData,VectorPrimitive
- Since:
- 4099
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe id of the changeset this primitive was last uploaded to.private static Collection<String>protected static final shortDetermines if the primitive has all of its referrersprotected static final shortIf the primitive is annotated with a tag such as note, fixme, etc.protected static final shortAn object that was deleted by the user.protected static final shortThis flag is only relevant if FLAG_HAS_DIRECTIONS is set.protected static final shortAn object can be disabled by the filter mechanism.protected static final shortFlag used internally by the filter mechanism.protected static final shortThis flag is set if the primitive is a way and according to the tags, the direction of the way is important.protected static final shortFlag used internally by the filter mechanism.protected static final shortThis flag is only relevant if an object is disabled by the filter mechanism (i.e. FLAG_DISABLED is set).protected static final shortWhen hovering over ways and nodes in add mode, the "target" objects are visually highlighted.protected static final shortA primitive is incomplete if we know its id and type, but nothing more.protected static final shortThis flag shows, that the properties have been changed by the user and on upload the object will be send to the server.protected static final shortDetermines if the primitive is preserved from the filter mechanism.protected static final shortIf the primitive is tagged.protected static final shortThis flag is false, if the object is marked as deleted on the server.protected shortPut several boolean flags to one short int field to save memory.protected longUnique identifier in OSM.protected String[]The key/value list for this primitive.protected shortThe mappaint cache index for this primitive.protected intA time value, measured in seconds from the epoch, or in other words, a number of seconds that have passed since 1970-01-01T00:00:00Zprivate static Collection<String>protected UserUser that last modified this primitive, as specified by the server.protected intContains the version number as returned by the API.private static Collection<String>Fields inherited from interface org.openstreetmap.josm.data.osm.Tagged
MAX_TAG_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the metadata, including id and version known to the OSM API.voidcloneFrom(AbstractPrimitive other) Get and write all attributes from the parameter.protected final StringdoGet(String key, BiPredicate<String, String> predicate) final StringReplies the value for keykey.intReplies the id of the changeset this primitive was last uploaded to.booleanGet binary property used internally by the filter mechanism.static Collection<String>Returns a list of keys which have been deemed uninteresting to the point that they can be silently removed from data which is being edited.protected StringbooleanGet binary property used internally by the filter mechanism.longgetId()Replies the id of this primitive.abstract UniqueIdGeneratorReturns the unique identifier generator.final StringgetIgnoreCase(String key) Gets a key ignoring the case of the keyTime of last modification to this object.ReturnsTagged.getKeys()for whichkeydoes not fulfill uninteresting criteria.getKeys()Replies the map of key/value pairs.final intGets the number of keysintTime of last modification to this object.static Collection<String>Returns a list of "uninteresting" keys that do not make an object "tagged".longGets a unique id representing this object.getUser()Replies the user who has last touched this object.intReplies the version number as returned by the API.static Collection<String>Returns a list of "work in progress" keys that do not make an object "tagged" but "annotated".booleantrue if this object has direction dependent tags (e.g.booleanReplies true if this primitive has a tag with keykey.booleanReplies true if this primitive has a tag any of thekeys.final booleanhasKeys()Replies true, if the map of key/value pairs of this primitive is not empty.private static intindexOfKey(String[] keys, String key) Scans a key/value array for a given key.booleanDetermines if this object is considered "annotated".booleanRepliestrue, if the object has been deleted.booleanReplies true, if this primitive is disabled.booleanReplies true, if this primitive is disabled and marked as completely hidden on the map.booleanDetermines if this object is drawable.booleanChecks if the highlight flag for this primitive was setbooleanDetermines if this primitive is incomplete.booleanRepliestrueif the object has been modified since it was loaded from the server.booleanisNew()Determines if this primitive is new.booleanDetermines if this primitive is new or undeleted.booleanReplies true, if this primitive is preserved from filtering.booleanDetermines if this primitive is fully downloadedbooleanisTagged()Determines if this object is considered "tagged".booleanDetermines if this primitive has no timestamp information.booleanRepliestrueif the object has been deleted on the server and was undeleted by the user.static booleanisUninterestingKey(String key) Determines if key is considered "uninteresting".booleanisUsable()Repliestrue, if the object is usable (i.e.booleanChecks if object is known to the server.keys()Replies the keys as streamprotected abstract voidkeysChangedImpl(Map<String, String> originalKeys) What to do, when the tags have changed by one of the tag-changing methods.final Collection<String>keySet()Replies the set of keysvoidSet the given value to the given key.voidAdd all key/value pairs.voidRemove the given key from the listvoidRemoves all keys from this primitive.booleantrue if this object has the "reversed direction" flag enabledvoidsetChangesetId(int changesetId) Sets the changeset id of this primitive.voidsetDeleted(boolean deleted) Sets whether this primitive is deleted or not.booleansetDisabledState(boolean hidden) Make the primitive disabled (e.g. if a filter applies).voidsetDisabledType(boolean isExplicit) Set binary property used internally by the filter mechanism.voidsetHiddenType(boolean isExplicit) Set binary property used internally by the filter mechanism.protected voidsetIncomplete(boolean incomplete) If set to true, this object is incomplete, which means only the id and type is known (type is the objects instance class)voidsetInstant(Instant timestamp) Sets time of last modification to this objectvoidSets the keys of this primitives to the key/value pairs inkeys.voidCopy the keys from a TagMap.voidsetModified(boolean modified) Marks this primitive as being modified.voidsetOsmId(long id, int version) Sets the id and the version of this primitive if it is known to the OSM API.voidsetRawTimestamp(int timestamp) Sets time of last modification to this objectvoidsetReferrersDownloaded(boolean referrersDownloaded) Set the status of the referrersvoidSets the user who has last touched this object.voidsetVisible(boolean visible) Sets whether this primitive is visible, i.e.booleanRemove the disabled flag from the primitive.protected voidupdateFlags(short flag, boolean value) protected booleanupdateFlagsChanged(short flag, boolean value) Update flagsvoidvisitKeys(KeyValueVisitor visitor) Calls the visitor for every key/value pair.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.openstreetmap.josm.data.osm.IPrimitive
accept, getBBox, getChildren, getDataSet, getDisplayName, getDisplayType, getLocalName, getName, getOsmId, getOsmPrimitiveId, getPrimitiveId, getReferrers, getReferrers, getStyleCacheSyncObject, hasSameInterestingTags, isMemberOfSelected, isMultipolygon, isOuterMemberOfSelected, isSelectable, isSelected, setHighlighted, visitReferrersMethods inherited from interface org.openstreetmap.josm.data.osm.PrimitiveId
getTypeMethods inherited from interface org.openstreetmap.josm.data.osm.Stylable
clearCachedStyle, declareCachedStyleUpToDate, getCachedStyle, isCachedStyleUpToDate, setCachedStyleMethods inherited from interface org.openstreetmap.josm.data.osm.Tagged
hasTag, hasTag, hasTag, hasTag, hasTagDifferent, hasTagDifferent, hasTagDifferent, isKeyFalse, isKeyTrue, put
-
Field Details
-
FLAG_MODIFIED
This flag shows, that the properties have been changed by the user and on upload the object will be send to the server.- See Also:
-
FLAG_VISIBLE
This flag is false, if the object is marked as deleted on the server.- See Also:
-
FLAG_DELETED
An object that was deleted by the user. Deleted objects are usually hidden on the map and a request for deletion will be send to the server on upload. An object usually cannot be deleted if it has non-deleted objects still referring to it.- See Also:
-
FLAG_INCOMPLETE
A primitive is incomplete if we know its id and type, but nothing more. Typically some members of a relation are incomplete until they are fetched from the server.- See Also:
-
FLAG_DISABLED
An object can be disabled by the filter mechanism. Then it will show in a shade of gray on the map or it is completely hidden from the view. Disabled objects usually cannot be selected or modified while the filter is active.- See Also:
-
FLAG_HIDE_IF_DISABLED
This flag is only relevant if an object is disabled by the filter mechanism (i.e. FLAG_DISABLED is set). Then it indicates, whether it is completely hidden or just shown in gray color.When the primitive is not disabled, this flag should be unset as well (for efficient access).
- See Also:
-
FLAG_DISABLED_TYPE
Flag used internally by the filter mechanism.- See Also:
-
FLAG_HIDDEN_TYPE
Flag used internally by the filter mechanism.- See Also:
-
FLAG_HAS_DIRECTIONS
This flag is set if the primitive is a way and according to the tags, the direction of the way is important. (e.g. one way street.)- See Also:
-
FLAG_TAGGED
If the primitive is tagged. Some trivial tags like source=* are ignored here.- See Also:
-
FLAG_DIRECTION_REVERSED
This flag is only relevant if FLAG_HAS_DIRECTIONS is set. It shows, that direction of the arrows should be reversed. (E.g. oneway=-1.)- See Also:
-
FLAG_HIGHLIGHTED
When hovering over ways and nodes in add mode, the "target" objects are visually highlighted. This flag indicates that the primitive is currently highlighted.- See Also:
-
FLAG_ANNOTATED
If the primitive is annotated with a tag such as note, fixme, etc. Match the "work in progress" tags in default map style.- See Also:
-
FLAG_PRESERVED
Determines if the primitive is preserved from the filter mechanism.- See Also:
-
FLAG_ALL_REFERRERS_DOWNLOADED
Determines if the primitive has all of its referrers- See Also:
-
flags
Put several boolean flags to one short int field to save memory. Other bits of this field are used in subclasses. -
mappaintCacheIdx
The mappaint cache index for this primitive. This field belongs toOsmPrimitive, but due to Java's memory layout alignment, see #20830. -
id
Unique identifier in OSM. This is used to identify objects on the server. An id of 0 means an unknown id. The object has not been uploaded yet to know what id it will get. -
user
User that last modified this primitive, as specified by the server. Never changed by JOSM. -
version
Contains the version number as returned by the API. Needed to ensure update consistency -
changesetId
The id of the changeset this primitive was last uploaded to. 0 if it wasn't uploaded to a changeset yet of if the changeset id isn't known. -
timestamp
A time value, measured in seconds from the epoch, or in other words, a number of seconds that have passed since 1970-01-01T00:00:00Z -
keys
The key/value list for this primitive.Note that the keys field is synchronized using RCU. Writes to it are not synchronized by this object, the writers have to synchronize writes themselves.
In short this means that you should not rely on this variable being the same value when read again and your should always copy it on writes.
Further reading:
CopyOnWriteArrayList- http://stackoverflow.com/questions/2950871/how-can-copyonwritearraylist-be-thread-safe
-
https://en.wikipedia.org/wiki/Read-copy-update (mind that we have a Garbage collector,
rcu_assign_pointerandrcu_dereferenceare ensured by thevolatilekeyword)
-
workinprogress
-
uninteresting
-
discardable
-
-
Constructor Details
-
AbstractPrimitive
public AbstractPrimitive()
-
-
Method Details
-
cloneFrom
Get and write all attributes from the parameter. Does not fire any listener, so use this only in the data initializing phase- Parameters:
other- the primitive to clone data from
-
getVersion
Description copied from interface:IPrimitiveReplies the version number as returned by the API. The version is 0 if the id is 0 or if this primitive is incomplete.- Specified by:
getVersionin interfaceIPrimitive- Returns:
- the version number as returned by the API
- See Also:
-
getId
Description copied from interface:IPrimitiveReplies the id of this primitive.- Specified by:
getIdin interfaceIPrimitive- Returns:
- the id of this primitive.
-
getUniqueId
Gets a unique id representing this object.- Specified by:
getUniqueIdin interfacePrimitiveId- Returns:
- Osm id if primitive already exists on the server. Unique negative value if primitive is new
-
isNew
Determines if this primitive is new.- Specified by:
isNewin interfacePrimitiveId- Returns:
trueif this primitive is new (not yet uploaded the server, id <= 0)
-
isNewOrUndeleted
Description copied from interface:IPrimitiveDetermines if this primitive is new or undeleted.- Specified by:
isNewOrUndeletedin interfaceIPrimitive- Returns:
- True if primitive is new or undeleted
- See Also:
-
setOsmId
Description copied from interface:IPrimitiveSets the id and the version of this primitive if it is known to the OSM API.Since we know the id and its version it can't be incomplete anymore. incomplete is set to false.
- Specified by:
setOsmIdin interfaceIPrimitive- Parameters:
id- the id. > 0 requiredversion- the version > 0 required
-
clearOsmMetadata
Clears the metadata, including id and version known to the OSM API. The id is a new unique id. The version, changeset and timestamp are set to 0. incomplete and deleted are set to false. It's preferred to use copy constructor with clearMetadata set to true instead of calling this method.- Since:
- 6140
-
getIdGenerator
Returns the unique identifier generator.- Returns:
- the unique identifier generator
- Since:
- 15820
-
getUser
Description copied from interface:IPrimitiveReplies the user who has last touched this object. May be null.- Specified by:
getUserin interfaceIPrimitive- Returns:
- the user who has last touched this object. May be null.
-
setUser
Description copied from interface:IPrimitiveSets the user who has last touched this object.- Specified by:
setUserin interfaceIPrimitive- Parameters:
user- the user
-
getChangesetId
Description copied from interface:IPrimitiveReplies the id of the changeset this primitive was last uploaded to. 0 if this primitive wasn't uploaded to a changeset yet or if the changeset isn't known.- Specified by:
getChangesetIdin interfaceIPrimitive- Returns:
- the id of the changeset this primitive was last uploaded to.
-
setChangesetId
Description copied from interface:IPrimitiveSets the changeset id of this primitive. Can't be set on a new primitive.- Specified by:
setChangesetIdin interfaceIPrimitive- Parameters:
changesetId- the id. >= 0 required.
-
setInstant
Description copied from interface:IPrimitiveSets time of last modification to this object- Specified by:
setInstantin interfaceIPrimitive- Parameters:
timestamp- date of last modification- See Also:
-
setRawTimestamp
Description copied from interface:IPrimitiveSets time of last modification to this object- Specified by:
setRawTimestampin interfaceIPrimitive- Parameters:
timestamp- date of last modification- See Also:
-
getInstant
Description copied from interface:IPrimitiveTime of last modification to this object. This is not set by JOSM but read from the server and delivered back to the server unmodified. It is used to check against edit conflicts.- Specified by:
getInstantin interfaceIPrimitive- Returns:
- date of last modification
- See Also:
-
getRawTimestamp
Description copied from interface:IPrimitiveTime of last modification to this object. This is not set by JOSM but read from the server and delivered back to the server unmodified. It is used to check against edit conflicts.- Specified by:
getRawTimestampin interfaceIPrimitive- Returns:
- last modification as timestamp
- See Also:
-
isTimestampEmpty
Description copied from interface:IPrimitiveDetermines if this primitive has no timestamp information.- Specified by:
isTimestampEmptyin interfaceIPrimitive- Returns:
trueif this primitive has no timestamp information- See Also:
-
updateFlags
-
updateFlagsChanged
Update flags- Parameters:
flag- The flag to updatevalue- The value to set- Returns:
trueif the flags have changed
-
setModified
Description copied from interface:IPrimitiveMarks this primitive as being modified.- Specified by:
setModifiedin interfaceIPrimitive- Parameters:
modified- true, if this primitive is to be modified
-
isModified
Description copied from interface:IPrimitiveRepliestrueif the object has been modified since it was loaded from the server. In this case, on next upload, this object will be updated.Deleted objects are deleted from the server. If the objects are added (id=0), the modified is ignored and the object is added to the server.
- Specified by:
isModifiedin interfaceIPrimitive- Returns:
trueif the object has been modified since it was loaded from the server
-
isDeleted
Description copied from interface:IPrimitiveRepliestrue, if the object has been deleted.- Specified by:
isDeletedin interfaceIPrimitive- Returns:
true, if the object has been deleted.- See Also:
-
setReferrersDownloaded
Description copied from interface:IPrimitiveSet the status of the referrers- Specified by:
setReferrersDownloadedin interfaceIPrimitive- Parameters:
referrersDownloaded-trueif all referrers for this object have been downloaded
-
isUndeleted
Description copied from interface:IPrimitiveRepliestrueif the object has been deleted on the server and was undeleted by the user.- Specified by:
isUndeletedin interfaceIPrimitive- Returns:
trueif the object has been undeleted
-
isUsable
Description copied from interface:IPrimitiveRepliestrue, if the object is usable (i.e. complete and not deleted).- Specified by:
isUsablein interfaceIPrimitive- Returns:
true, if the object is usable.- See Also:
-
isVisible
Description copied from interface:IPrimitiveChecks if object is known to the server. Replies true if this primitive is either unknown to the server (i.e. its id is 0) or it is known to the server and it hasn't be deleted on the server. Replies false, if this primitive is known on the server and has been deleted on the server.- Specified by:
isVisiblein interfaceIPrimitive- Returns:
true, if the object is visible on server.- See Also:
-
setVisible
Description copied from interface:IPrimitiveSets whether this primitive is visible, i.e. whether it is known on the server and not deleted on the server.- Specified by:
setVisiblein interfaceIPrimitive- Parameters:
visible-trueif this primitive is visible- See Also:
-
setDeleted
Description copied from interface:IPrimitiveSets whether this primitive is deleted or not.Also marks this primitive as modified if deleted is true.
- Specified by:
setDeletedin interfaceIPrimitive- Parameters:
deleted- true, if this primitive is deleted; false, otherwise
-
hasDirectionKeys
Description copied from interface:IPrimitivetrue if this object has direction dependent tags (e.g. oneway)- Specified by:
hasDirectionKeysin interfaceIPrimitive- Returns:
trueif this object has direction dependent tags
-
reversedDirection
Description copied from interface:IPrimitivetrue if this object has the "reversed direction" flag enabled- Specified by:
reversedDirectionin interfaceIPrimitive- Returns:
trueif this object has the "reversed direction" flag enabled
-
isTagged
Description copied from interface:IPrimitiveDetermines if this object is considered "tagged". To be "tagged", an object must have one or more "interesting" tags. "created_by" and "source" are typically considered "uninteresting" and do not make an object "tagged".- Specified by:
isTaggedin interfaceIPrimitive- Returns:
- true if this object is considered "tagged"
-
isAnnotated
Description copied from interface:IPrimitiveDetermines if this object is considered "annotated". To be "annotated", an object must have one or more "work in progress" tags, such as "note" or "fixme".- Specified by:
isAnnotatedin interfaceIPrimitive- Returns:
- true if this object is considered "annotated"
-
isHighlighted
Description copied from interface:IPrimitiveChecks if the highlight flag for this primitive was set- Specified by:
isHighlightedin interfaceIPrimitive- Returns:
- The highlight flag.
-
isDisabled
Description copied from interface:IPrimitiveReplies true, if this primitive is disabled. (E.g. a filter applies)- Specified by:
isDisabledin interfaceIPrimitive- Returns:
trueif this object has the "disabled" flag enabled
-
isDisabledAndHidden
Description copied from interface:IPrimitiveReplies true, if this primitive is disabled and marked as completely hidden on the map.- Specified by:
isDisabledAndHiddenin interfaceIPrimitive- Returns:
trueif this object has both the "disabled" and "hide if disabled" flags enabled
-
isPreserved
Description copied from interface:IPrimitiveReplies true, if this primitive is preserved from filtering.- Specified by:
isPreservedin interfaceIPrimitive- Returns:
trueif this object has the "preserved" flag enabled
-
isReferrersDownloaded
Description copied from interface:IPrimitiveDetermines if this primitive is fully downloaded- Specified by:
isReferrersDownloadedin interfaceIPrimitive- Returns:
trueif the primitive is fully downloaded and all parents and children should be available.falseotherwise.
-
setIncomplete
If set to true, this object is incomplete, which means only the id and type is known (type is the objects instance class)- Parameters:
incomplete- incomplete flag value
-
isIncomplete
Description copied from interface:IPrimitiveDetermines if this primitive is incomplete.- Specified by:
isIncompletein interfaceIPrimitive- Returns:
trueif this primitive is incomplete,falseotherwise
-
getHiddenType
Description copied from interface:IFilterablePrimitiveGet binary property used internally by the filter mechanism.- Specified by:
getHiddenTypein interfaceIFilterablePrimitive- Returns:
trueif this object has the "hidden type" flag enabled
-
getDisabledType
Description copied from interface:IFilterablePrimitiveGet binary property used internally by the filter mechanism.- Specified by:
getDisabledTypein interfaceIFilterablePrimitive- Returns:
trueif this object has the "disabled type" flag enabled
-
setDisabledState
Description copied from interface:IFilterablePrimitiveMake the primitive disabled (e.g. if a filter applies). To enable the primitive again, use unsetDisabledState.- Specified by:
setDisabledStatein interfaceIFilterablePrimitive- Parameters:
hidden- if the primitive should be completely hidden from view or just shown in gray color.- Returns:
- true, any flag has changed; false if you try to set the disabled state to the value that is already preset
-
unsetDisabledState
Description copied from interface:IFilterablePrimitiveRemove the disabled flag from the primitive. Afterwards, the primitive is displayed normally and can be selected again.- Specified by:
unsetDisabledStatein interfaceIFilterablePrimitive- Returns:
trueif a change occurred
-
setDisabledType
Description copied from interface:IFilterablePrimitiveSet binary property used internally by the filter mechanism.- Specified by:
setDisabledTypein interfaceIFilterablePrimitive- Parameters:
isExplicit- new "disabled type" flag value
-
setHiddenType
Description copied from interface:IFilterablePrimitiveSet binary property used internally by the filter mechanism.- Specified by:
setHiddenTypein interfaceIFilterablePrimitive- Parameters:
isExplicit- new "hidden type" flag value
-
isDrawable
Description copied from interface:IPrimitiveDetermines if this object is drawable.A primitive is drawable if all conditions are met:
- type and id is known
- tags are known
- it is not deleted
- it is not hidden by a filter
- for nodes: lat/lon are known
- for ways: all nodes are known and complete
- for relations: all members are known and complete
- Specified by:
isDrawablein interfaceIPrimitive- Returns:
trueif this object is drawable
-
getFlagsAsString
-
getKeys
Replies the map of key/value pairs. Never replies null. The map can be empty, though. -
visitKeys
Description copied from interface:TaggedCalls the visitor for every key/value pair. -
setKeys
Sets the keys of this primitives to the key/value pairs inkeys. Old key/value pairs are removed. Ifkeysis null, clears existing key/value pairs.Note that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
-
setKeys
Copy the keys from a TagMap.- Parameters:
keys- The new key map.
-
put
Set the given value to the given key. If key is null, does nothing. If value is null, removes the key and behaves likeremove(String).Note that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
-
putAll
Description copied from interface:TaggedAdd all key/value pairs. This may be more performant thanTagged.put(java.lang.String, java.lang.String), depending upon the implementation. By default, this callsTagged.put(java.lang.String, java.lang.String)for each map entry. -
indexOfKey
Scans a key/value array for a given key.- Parameters:
keys- The key array. It is not modified. It may be null to indicate an empty array.key- The key to search for.- Returns:
- The position of that key in the keys array - which is always a multiple of 2 - or -1 if it was not found.
-
remove
Remove the given key from the listNote that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
-
removeAll
Removes all keys from this primitive.Note that this method, like all methods that modify keys, is not synchronized and may lead to data corruption when being used from multiple threads.
-
doGet
-
get
Replies the value for keykey. Replies null, ifkeyis null. Replies null, if there is no value for the given key. -
getIgnoreCase
Gets a key ignoring the case of the key- Parameters:
key- The key to get- Returns:
- The value for a key that matches the given key ignoring case.
-
getNumKeys
Description copied from interface:TaggedGets the number of keys- Specified by:
getNumKeysin interfaceTagged- Returns:
- The number of keys set for this tagged object.
-
keySet
Description copied from interface:TaggedReplies the set of keys -
keys
Description copied from interface:TaggedReplies the keys as stream -
hasKeys
Replies true, if the map of key/value pairs of this primitive is not empty. -
hasKey
Replies true if this primitive has a tag with keykey. -
hasKey
Replies true if this primitive has a tag any of thekeys.- Parameters:
keys- the keys- Returns:
- true, if this primitive has a tag with any of the
keys - Since:
- 11587
-
keysChangedImpl
What to do, when the tags have changed by one of the tag-changing methods.- Parameters:
originalKeys- original tags
-
getUninterestingKeys
Returns a list of "uninteresting" keys that do not make an object "tagged". Entries that end with ':' are causing a whole namespace to be considered "uninteresting". Only the first level namespace is considered. Initialized by isUninterestingKey()- Returns:
- The list of uninteresting keys.
-
getDiscardableKeys
Returns a list of keys which have been deemed uninteresting to the point that they can be silently removed from data which is being edited.- Returns:
- The list of discardable keys.
-
getWorkInProgressKeys
Returns a list of "work in progress" keys that do not make an object "tagged" but "annotated".- Returns:
- The list of work in progress keys.
- Since:
- 5754
-
isUninterestingKey
Determines if key is considered "uninteresting".- Parameters:
key- The key to check- Returns:
- true if key is considered "uninteresting".
-
getInterestingTags
Description copied from interface:IPrimitiveReturnsTagged.getKeys()for whichkeydoes not fulfill uninteresting criteria.- Specified by:
getInterestingTagsin interfaceIPrimitive- Returns:
- A map of interesting tags
-