public final class Property extends Object implements Comparable<Property>
value type
and category (internal or external)
of the property are included in the property definition. The available
choice values are also stored for open and closed choice value types.Modifier and Type | Class and Description |
---|---|
static class |
Property.PropertyType |
static class |
Property.ValueType |
public static Property.PropertyType getPropertyType(String key)
key
- name of the propertypublic static Property get(String key)
key
- the property key or namepublic static Property composite(Property primaryProperty, Property[] secondaryExtractProperties)
Note that name of the composite property is taken from its primary property, and primary and secondary properties must not be composite properties themselves.
primaryProperty
- secondaryExtractProperties
- public String getName()
public boolean isInternal()
public boolean isExternal()
public boolean isMultiValuePermitted()
public Property.PropertyType getPropertyType()
public Property.ValueType getValueType()
public Set<String> getChoices()
open
and
closed choice
value types.null
public Property getPrimaryProperty()
public Property[] getSecondaryExtractProperties()
public int compareTo(Property o)
compareTo
in interface Comparable<Property>
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.