public abstract class

AttributeEditor

extends Object
java.lang.Object
   ↳ com.urbanairship.channel.AttributeEditor

Class Overview

Interface used for modifying attributes.

Summary

Public Methods
void apply()
Apply the attribute changes.
AttributeEditor removeAttribute(String key)
Removes an attribute.
AttributeEditor setAttribute(String key, String string)
Sets a string attribute.
AttributeEditor setAttribute(String key, Date date)
Sets a date attribute.
AttributeEditor setAttribute(String key, float number)
Sets a float number attribute.
AttributeEditor setAttribute(String key, long number)
Sets a long number attribute.
AttributeEditor setAttribute(String key, int number)
Sets an integer number attribute.
AttributeEditor setAttribute(String key, double number)
Sets a double number attribute.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void apply ()

Apply the attribute changes.

public AttributeEditor removeAttribute (String key)

Removes an attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
Returns
  • The AttributeEditor.

public AttributeEditor setAttribute (String key, String string)

Sets a string attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
string The attribute string greater than one character and less than 1024 characters in length.
Returns
  • The AttributeEditor.

public AttributeEditor setAttribute (String key, Date date)

Sets a date attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
date The date attribute.
Returns
  • The AttributeEditor.

public AttributeEditor setAttribute (String key, float number)

Sets a float number attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
number The number attribute.
Returns
  • The AttributeEditor.
Throws
NumberFormatException if the number is NaN or infinite.

public AttributeEditor setAttribute (String key, long number)

Sets a long number attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
number The number attribute.
Returns
  • The AttributeEditor.

public AttributeEditor setAttribute (String key, int number)

Sets an integer number attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
number The number attribute.
Returns
  • The AttributeEditor.

public AttributeEditor setAttribute (String key, double number)

Sets a double number attribute.

Parameters
key The attribute key greater than one character and less than 1024 characters in length.
number The number attribute.
Returns
  • The AttributeEditor.
Throws
NumberFormatException if the number is NaN or infinite.