public class

TagSelector

extends Object
implements JsonSerializable
java.lang.Object
   ↳ com.urbanairship.automation.tags.TagSelector

Class Overview

Tag selector.

Summary

Public Constructors
TagSelector(DeviceTagSelector core)
Public Methods
static TagSelector and(TagSelector... selectors)
Creates an AND tag selector.
static TagSelector and(List<TagSelector> selectors)
Creates an AND tag selector.
boolean equals(Object o)
static TagSelector fromJson(JsonValue value)
Parses a json value for a tag selector.
DeviceTagSelector getTagSelector()
int hashCode()
static TagSelector not(TagSelector selector)
Creates an NOT tag selector.
static TagSelector or(TagSelector... selectors)
Creates an OR tag selector.
static TagSelector or(List<TagSelector> selectors)
Creates an OR tag selector.
static TagSelector tag(String tag)
Creates a tag selector that checks for tag.
JsonValue toJsonValue()
Returns the objects represented as a JsonValue.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.json.JsonSerializable

Public Constructors

public TagSelector (DeviceTagSelector core)

Public Methods

public static TagSelector and (TagSelector... selectors)

Creates an AND tag selector.

Parameters
selectors The selectors to AND together.
Returns
  • The AND tag selector.

public static TagSelector and (List<TagSelector> selectors)

Creates an AND tag selector.

Parameters
selectors The selectors to AND together.
Returns
  • The AND tag selector.

public boolean equals (Object o)

public static TagSelector fromJson (JsonValue value)

Parses a json value for a tag selector.

Parameters
value The json value.
Returns
  • The parsed tag selector.
Throws
JsonException If the json value does not contain a valid tag selector.

public DeviceTagSelector getTagSelector ()

public int hashCode ()

public static TagSelector not (TagSelector selector)

Creates an NOT tag selector.

Parameters
selector The selectors to negate.
Returns
  • The NOT tag selector.

public static TagSelector or (TagSelector... selectors)

Creates an OR tag selector.

Parameters
selectors The selectors to OR together.
Returns
  • The OR tag selector.

public static TagSelector or (List<TagSelector> selectors)

Creates an OR tag selector.

Parameters
selectors The selectors to OR together.
Returns
  • The OR tag selector.

public static TagSelector tag (String tag)

Creates a tag selector that checks for tag.

Parameters
tag The tag.
Returns
  • A tag selector.

public JsonValue toJsonValue ()

Returns the objects represented as a JsonValue.

Returns
  • The object as a JsonValue.

public String toString ()