ERTag Class Reference

Inherits er::taggable::model::_ERTag.

Collaboration diagram for ERTag:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Inclusion { ANY, ALL }

Public Member Functions

void untagAllTaggables ()
void willDelete () throws ValidationException

Static Public Member Functions

static void deleteTagNamed (EOEditingContext editingContext, String tagName)
static void deleteTagNamed (String tagName)
static String escapeTagNamed (String tagName)

Static Private Attributes

static Logger log = Logger.getLogger(ERTag.class)


Detailed Description

ERTag represents a single String shared tag.

Author:
mschrag

Member Enumeration Documentation

enum Inclusion

Inclusion provides an enum for ANY or ALL.

Author:
mschrag
Enumerator:
ANY 
ALL 


Member Function Documentation

static void deleteTagNamed ( EOEditingContext  editingContext,
String  tagName 
) [static]

Deletes the tag with the given name and removes the tag from all taggables.

Parameters:
editingContext the editing context to delete in
tagName the tag name to delete

static void deleteTagNamed ( String  tagName  )  [static]

Deletes the tag with the given name and removes the tag from all taggables.

Parameters:
tagName the tag name to delete

static String escapeTagNamed ( String  tagName  )  [static]

Escapes the quotes inside the given tag name and defensively surrounds this tag with quotes.

Parameters:
tagName the tag name to escape
Returns:
an escaped tag name

void untagAllTaggables (  ) 

Removes this tag from all taggables. This is automatically called prior to deleting an ERTag.

void willDelete (  )  throws ValidationException [virtual]

Called as part of the augmented transaction process. This method is called after saveChanges is called on the editing context, but before the object is actually deleted from the database. This method is also called before validateForDelete is called on this object. This method is called by the editing context delegate ERXDefaultEditingContextDelegate.

Exceptions:
NSValidation.ValidationException to stop the object from being deleted.

Reimplemented from ERXGenericRecord.


Member Data Documentation

Logger log = Logger.getLogger(ERTag.class) [static, private]

general logging support

Implements ERXEnterpriseObject.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:35 2012 for Project Wonder by  doxygen 1.5.8