|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.taggable.ERTaggable<T>
T
- the type of EO that is being wrappedpublic class ERTaggable<T extends ERXGenericRecord>
ERTaggable provides a wrapper around a taggable EO, extending it with
tagging-related methods.
Typically you would provide a cover method from your EO to an
instance of an ERTaggable:
public class Person extends _Person {
...
public ERTaggable
Constructor Summary | |
---|---|
protected |
ERTaggable(ERTaggableEntity<T> entity,
T item)
Constructs an ERTaggable wrapper. |
Method Summary | ||
---|---|---|
protected void |
addTag(ERTag tag)
Adds the tag to this item. |
|
void |
addTagNamed(java.lang.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,
java.lang.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(java.lang.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(java.lang.Object obj)
|
|
int |
hashCode()
|
|
boolean |
isTaggedWith(java.lang.String tagName)
Checks to see if this object has been tagged with the given tag name. |
|
boolean |
isTaggedWithAll(java.lang.Object tags)
Checks to see if this object has been tagged with all the given tags. |
|
boolean |
isTaggedWithAny(java.lang.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(java.lang.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(java.lang.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(java.lang.Object tags)
Clears the current tags collection and sets the tag names for this object. |
|
static
|
taggable(T eo)
A factory method for generating a taggable from an EO. |
|
ERTaggableEntity<T> |
taggableEntity()
Returns the taggable entity for this taggable. |
|
com.webobjects.foundation.NSArray<java.lang.String> |
tagNames()
Returns an array of strings containing the tag names applied to this object. |
|
com.webobjects.foundation.NSArray<ERTag> |
tags()
Returns an array of ERTags associated with this item. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ERTaggable(ERTaggableEntity<T> entity, T item)
entity
- the ERTaggableEntity that corresponds to this item's entityitem
- the item to wrapMethod Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static <T extends ERXGenericRecord> ERTaggable<T> taggable(T eo)
T
- the type of the EO being wrappedeo
- the EO being wrapped
public T item()
public ERTaggableEntity<T> taggableEntity()
public com.webobjects.foundation.NSArray<ERTag> tags()
public void clearTags()
public void removeTags(java.lang.Object tags)
tags
- the tags to remove (String to tokenize, NSArraypublic void removeTagNamed(java.lang.String tagName)
tagName
- the tag to remove (String to tokenize, NSArraypublic void addTagNamed(java.lang.String tagName)
tagName
- the tag name to addpublic void addTags(java.lang.Object tags)
tags
- the tags to add (String to tokenize, NSArraypublic void addTags(boolean clear, java.lang.Object tags)
tags
- the tags to add (String to tokenize, NSArrayclear
- 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(java.lang.Object tags)
tags
- the tags to add (String to tokenize, NSArraypublic com.webobjects.foundation.NSArray<java.lang.String> tagNames()
public boolean isTaggedWith(java.lang.String tagName)
tagName
- the tag name to check
public boolean isTaggedWithAll(java.lang.Object tags)
tags
- the tags to add (String to tokenize, NSArraypublic boolean isTaggedWithAny(java.lang.Object tags)
tags
- the tags to add (String to tokenize, NSArray
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |