public abstract class

Dynamic

extends Object
java.lang.Object
   ↳ com.zuora.api.object.Dynamic
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base class for Zuora objects that simplifies accessing customizable properties - properties that may be defined by user

Summary

Fields
private static final HashSet<String> EXCLUDED_PROPERTY_NAMES
private static MapObjectMapper mom
Public Constructors
Dynamic()
Public Methods
Collection<Entry<String, Object>> dynamicProperties()
Answers the name and values of the dynamic properties of this object
List<Element> getAny()
Answers the dynamic property elements.
Object getAt(String name)
Synonym of getField(String) that lets groovy script users to access dynamic properties with the indexed brackets [] syntax.
Object getField(String name)
Collection<Entry<String, Object>> properties()
void setAt(String name, Object value)
Synonym of #setField(String, String) that lets groovy script users to set dynamic properties with the indexed brackets [] syntax.
void setField(String name, Object value)
Collection<Entry<String, Object>> staticProperties()
Answers the name and values of the static properties of this object
String toString()
Protected Methods
String toPropertyName(String name)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static final HashSet<String> EXCLUDED_PROPERTY_NAMES

private static MapObjectMapper mom

Public Constructors

public Dynamic ()

Public Methods

public Collection<Entry<String, Object>> dynamicProperties ()

Answers the name and values of the dynamic properties of this object

Returns
  • the dynamic properties, as string-object pairs

public List<Element> getAny ()

Answers the dynamic property elements. Warning: this method is CXF specific and its usage is discouraged

Returns
  • a collection of elements, if this object has true dynamic properties

public Object getAt (String name)

Synonym of getField(String) that lets groovy script users to access dynamic properties with the indexed brackets [] syntax.

Parameters
name

public Object getField (String name)

Parameters
name

public Collection<Entry<String, Object>> properties ()

public void setAt (String name, Object value)

Synonym of #setField(String, String) that lets groovy script users to set dynamic properties with the indexed brackets [] syntax.

Parameters
name
value

public void setField (String name, Object value)

Parameters
name
value

public Collection<Entry<String, Object>> staticProperties ()

Answers the name and values of the static properties of this object

Returns
  • the static properties, as string-object pairs

public String toString ()

Protected Methods

protected String toPropertyName (String name)

Parameters
name