T
- the type of EO that is being wrappedpublic class ERTaggable<T extends ERXGenericRecord> extends Object
public class Person extends _Person {
...
public ERTaggable<Person> taggable() {
return ERTaggable.taggable(this);
}
}
Modifier | Constructor and Description |
---|---|
protected |
ERTaggable(ERTaggableEntity<T> entity,
T item)
Constructs an ERTaggable wrapper.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addTag(ERTag tag)
Adds the tag to this item.
|
void |
addTagNamed(String tagName)
This method applies tags to the target object, by looking up the corresponding
Tag object instances and adding it to the tag collection of the object.
|
void |
addTags(boolean clear,
Object tags)
This method applies tags to the target object, by parsing the tags parameter
into Tag object instances and adding them to the tag collection of the object.
|
void |
addTags(Object tags)
This method applies tags to the target object, by parsing the tags parameter
into Tag object instances and adding them to the tag collection of the object.
|
void |
clearTags()
Removes all of the tags associated with this item.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isTaggedWith(String tagName)
Checks to see if this object has been tagged with the given tag name.
|
boolean |
isTaggedWithAll(Object tags)
Checks to see if this object has been tagged with all the given tags.
|
boolean |
isTaggedWithAny(Object tags)
Checks to see if this object has been tagged with any of the given tags.
|
T |
item()
Returns the tagged item that this is taggable is wrapping.
|
protected void |
removeTag(ERTag tag)
Removes the tag from this item.
|
void |
removeTagNamed(String tagName)
This method removes tags from the target object, by looking up the corresponding
Tag object instances and removing them from the tag collection of the object if they exist.
|
void |
removeTags(Object tags)
This method removes tags from the target object, by parsing the tags parameter
into Tag object instances and removing them from the tag collection of the object if they exist.
|
void |
setTags(Object tags)
Clears the current tags collection and sets the tag names for this object.
|
static <T extends ERXGenericRecord> |
taggable(T eo)
A factory method for generating a taggable from an EO.
|
ERTaggableEntity<T> |
taggableEntity()
Returns the taggable entity for this taggable.
|
NSArray<String> |
tagNames()
Returns an array of strings containing the tag names applied to this object.
|
NSArray<ERTag> |
tags()
Returns an array of ERTags associated with this item.
|
protected ERTaggable(ERTaggableEntity<T> entity, T item)
entity
- the ERTaggableEntity that corresponds to this item's entityitem
- the item to wrappublic static <T extends ERXGenericRecord> ERTaggable<T> taggable(T eo)
T
- the type of the EO being wrappedeo
- the EO being wrappedpublic T item()
public ERTaggableEntity<T> taggableEntity()
public NSArray<ERTag> tags()
public void clearTags()
public void removeTags(Object tags)
tags
- the tags to remove (String to tokenize, NSArray<String>, etc)public void removeTagNamed(String tagName)
tagName
- the tag to remove (String to tokenize, NSArray<String>, etc)public void addTagNamed(String tagName)
tagName
- the tag name to addpublic void addTags(Object tags)
tags
- the tags to add (String to tokenize, NSArray<String>, etc)public void addTags(boolean clear, Object tags)
tags
- the tags to add (String to tokenize, NSArray<String>, etc)clear
- if true, existing tags will be removed firstprotected void addTag(ERTag tag)
tag
- the tag to addprotected void removeTag(ERTag tag)
tag
- the tag to removepublic void setTags(Object tags)
tags
- the tags to add (String to tokenize, NSArray<String>, etc)public NSArray<String> tagNames()
public boolean isTaggedWith(String tagName)
tagName
- the tag name to checkpublic boolean isTaggedWithAll(Object tags)
tags
- the tags to add (String to tokenize, NSArray<String>, etc)public boolean isTaggedWithAny(Object tags)
tags
- the tags to add (String to tokenize, NSArray<String>, etc)Copyright © 2002 – 2024 Project Wonder.