public abstract class OptionElement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OptionElement.Kind |
Modifier and Type | Method and Description |
---|---|
static OptionElement |
create(String name,
OptionElement.Kind kind,
Object value) |
static OptionElement |
create(String name,
OptionElement.Kind kind,
Object value,
boolean isParenthesized) |
static OptionElement |
findByName(List<OptionElement> options,
String name)
Return the option with the specified name from the supplied list or null.
|
abstract boolean |
isParenthesized() |
abstract OptionElement.Kind |
kind() |
abstract String |
name() |
static Map<String,Object> |
optionsAsMap(List<OptionElement> options) |
String |
toSchema() |
String |
toSchemaDeclaration() |
abstract Object |
value() |
public static Map<String,Object> optionsAsMap(List<OptionElement> options)
public static OptionElement findByName(List<OptionElement> options, String name)
public static OptionElement create(String name, OptionElement.Kind kind, Object value)
public static OptionElement create(String name, OptionElement.Kind kind, Object value, boolean isParenthesized)
public abstract String name()
public abstract OptionElement.Kind kind()
public abstract Object value()
public abstract boolean isParenthesized()
public final String toSchema()
public final String toSchemaDeclaration()
Copyright © 2015 Square, Inc.. All Rights Reserved.