public enum PropertyArity extends Enum<PropertyArity>
Property| Enum Constant and Description |
|---|
ARRAY
An Arity corresponding to a Java array.
|
LIST
An Arity corresponding to java.util.List or any of its derived classes.
|
MAP
An Arity corresponding to java.util.Map or any of its derived classes.
|
SCALAR
An Arity corresponding to a simple object, which must be of a
type corresponding to one of the instances of
PropertyType. |
SET
An Arity corresponding to java.util.Set or any of its derived classes.
|
| Modifier and Type | Field and Description |
|---|---|
String |
name
A String name for the Arity, used for reporting.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static PropertyArity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyArity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyArity ARRAY
Integer, Boolean, Byte,
Character, Double,
Float, Long, and
Short, a Property with arity ARRAY is an array of primitive
Java types rather than Objects (e.g., int
rather than Integer).public static final PropertyArity LIST
public static final PropertyArity MAP
public static final PropertyArity SCALAR
PropertyType.public static final PropertyArity SET
public final String name
public static PropertyArity[] values()
for (PropertyArity c : PropertyArity.values()) System.out.println(c);
public static PropertyArity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<PropertyArity>Copyright © 2008–2020 The Open Preservation Foundation. All rights reserved.