public class NumericalProperty extends DataProperty implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NumericalProperty.Type |
Property.Arity, Property.Tags
Modifier and Type | Field and Description |
---|---|
java.lang.String |
type |
additionalMetaNames, advancedParams, dedicatedField, DEFAULT_DEDICATED_FIELD, DEFAULT_DISJUNCTIVE_REFINES, DEFAULT_FACET, DEFAULT_OVERRIDE_CLASS_EXPANSION_PARAMS, DEFAULT_RAM_BASED, DEFAULT_RETRIEVABLE, DEFAULT_SEARCHABLE, defaultValue, disjunctiveRefines, dynamicProperty, facet, overrideClassExpansionParams, ramBased, retrievable, searchable
arity, ARITY_MANY, ARITY_ONE, ARITY_ZERO_OR_ONE, comment, DEFAULT_ARITY, keyValue, label, name, tags
Constructor and Description |
---|
NumericalProperty() |
NumericalProperty(NumericalProperty o)
Copy constructor
|
NumericalProperty(java.lang.String name,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this NumericalProperty.
|
static NumericalProperty |
fromString(java.lang.String s)
String representation of this NumericalProperty.
|
java.lang.String |
getType()
Type of this numerical property.
|
NumericalProperty.Type |
getTypeAsEnum()
Type of this numerical property.
|
static boolean |
isA(java.lang.String str,
NumericalProperty.Type item) |
static boolean |
isOneOf(java.lang.String str,
NumericalProperty.Type... items) |
NumericalProperty |
makeCopy()
Creates and returns a deep copy of this NumericalProperty.
|
static NumericalProperty |
readFrom(java.io.InputStream is)
Read this NumericalProperty from an XML fragment.
|
void |
setType(NumericalProperty.Type item)
Type of this numerical property.
|
void |
setType(java.lang.String type)
Type of this numerical property.
|
java.lang.String |
toString()
String representation of this NumericalProperty.
|
NumericalProperty |
withAdditionalMetaNames(java.lang.String additionalMetaNames) |
NumericalProperty |
withAdvancedParams(AdvancedParams advancedParams) |
NumericalProperty |
withArity(java.lang.String arity) |
NumericalProperty |
withComment(java.lang.String comment) |
NumericalProperty |
withDedicatedField(boolean dedicatedField) |
NumericalProperty |
withDedicatedField(java.lang.Boolean dedicatedField) |
NumericalProperty |
withDefaultValue(java.lang.String defaultValue) |
NumericalProperty |
withDisjunctiveRefines(boolean disjunctiveRefines) |
NumericalProperty |
withDisjunctiveRefines(java.lang.Boolean disjunctiveRefines) |
NumericalProperty |
withDynamicProperty(java.lang.String dynamicProperty) |
NumericalProperty |
withFacet(boolean facet) |
NumericalProperty |
withFacet(java.lang.Boolean facet) |
NumericalProperty |
withKeyValue(java.util.Collection<KeyValue> __values) |
NumericalProperty |
withKeyValue(KeyValue... __values) |
NumericalProperty |
withLabel(java.util.Collection<Label> __values) |
NumericalProperty |
withLabel(Label... __values)
Labels for the internationalization of this property's name
|
NumericalProperty |
withName(java.lang.String name) |
NumericalProperty |
withOverrideClassExpansionParams(boolean overrideClassExpansionParams) |
NumericalProperty |
withOverrideClassExpansionParams(java.lang.Boolean overrideClassExpansionParams) |
NumericalProperty |
withRamBased(boolean ramBased) |
NumericalProperty |
withRamBased(java.lang.Boolean ramBased) |
NumericalProperty |
withRetrievable(boolean retrievable) |
NumericalProperty |
withRetrievable(java.lang.Boolean retrievable) |
NumericalProperty |
withSearchable(boolean searchable) |
NumericalProperty |
withSearchable(java.lang.Boolean searchable) |
NumericalProperty |
withTags(java.util.Collection<KeyValue> __values) |
NumericalProperty |
withTags(KeyValue... __values)
User-defined tags for this property.
|
NumericalProperty |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this NumericalProperty as an XML fragment
|
getAdditionalMetaNames, getAdvancedParams, getDefaultValue, getDynamicProperty, isDedicatedField, isDisjunctiveRefines, isFacet, isOverrideClassExpansionParams, isRamBased, isRetrievable, isSearchable, setAdditionalMetaNames, setAdvancedParams, setDedicatedField, setDefaultValue, setDisjunctiveRefines, setDynamicProperty, setFacet, setOverrideClassExpansionParams, setRamBased, setRetrievable, setSearchable
addKeyValue, getArity, getArityAsEnum, getComment, getKeyValue, getLabel, getName, getTags, isA, isOneOf, setArity, setArity, setComment, setName, setTags, withTags
public NumericalProperty()
public NumericalProperty(NumericalProperty o)
public NumericalProperty(java.lang.String name, java.lang.String type)
public static boolean isA(java.lang.String str, NumericalProperty.Type item)
public static boolean isOneOf(java.lang.String str, NumericalProperty.Type... items)
public void setType(NumericalProperty.Type item)
public NumericalProperty.Type getTypeAsEnum()
public NumericalProperty withAdvancedParams(AdvancedParams advancedParams)
withAdvancedParams
in class DataProperty
public NumericalProperty withOverrideClassExpansionParams(boolean overrideClassExpansionParams)
withOverrideClassExpansionParams
in class DataProperty
public NumericalProperty withOverrideClassExpansionParams(java.lang.Boolean overrideClassExpansionParams)
withOverrideClassExpansionParams
in class DataProperty
public NumericalProperty withDedicatedField(boolean dedicatedField)
withDedicatedField
in class DataProperty
public NumericalProperty withDedicatedField(java.lang.Boolean dedicatedField)
withDedicatedField
in class DataProperty
public NumericalProperty withDynamicProperty(java.lang.String dynamicProperty)
withDynamicProperty
in class DataProperty
public NumericalProperty withSearchable(boolean searchable)
withSearchable
in class DataProperty
public NumericalProperty withSearchable(java.lang.Boolean searchable)
withSearchable
in class DataProperty
public NumericalProperty withRetrievable(boolean retrievable)
withRetrievable
in class DataProperty
public NumericalProperty withRetrievable(java.lang.Boolean retrievable)
withRetrievable
in class DataProperty
public NumericalProperty withRamBased(boolean ramBased)
withRamBased
in class DataProperty
public NumericalProperty withRamBased(java.lang.Boolean ramBased)
withRamBased
in class DataProperty
public NumericalProperty withFacet(boolean facet)
withFacet
in class DataProperty
public NumericalProperty withFacet(java.lang.Boolean facet)
withFacet
in class DataProperty
public NumericalProperty withDisjunctiveRefines(boolean disjunctiveRefines)
withDisjunctiveRefines
in class DataProperty
public NumericalProperty withDisjunctiveRefines(java.lang.Boolean disjunctiveRefines)
withDisjunctiveRefines
in class DataProperty
public NumericalProperty withDefaultValue(java.lang.String defaultValue)
withDefaultValue
in class DataProperty
public NumericalProperty withAdditionalMetaNames(java.lang.String additionalMetaNames)
withAdditionalMetaNames
in class DataProperty
public NumericalProperty withKeyValue(KeyValue... __values)
withKeyValue
in class DataProperty
public NumericalProperty withKeyValue(java.util.Collection<KeyValue> __values)
withKeyValue
in class DataProperty
public NumericalProperty withArity(java.lang.String arity)
withArity
in class DataProperty
public NumericalProperty withName(java.lang.String name)
withName
in class DataProperty
public NumericalProperty withComment(java.lang.String comment)
withComment
in class DataProperty
public NumericalProperty withLabel(Label... __values)
withLabel
in class DataProperty
public NumericalProperty withLabel(java.util.Collection<Label> __values)
withLabel
in class DataProperty
public NumericalProperty withTags(KeyValue... __values)
withTags
in class DataProperty
public NumericalProperty withTags(java.util.Collection<KeyValue> __values)
withTags
in class DataProperty
public void setType(java.lang.String type)
public java.lang.String getType()
public NumericalProperty withType(java.lang.String type)
public NumericalProperty makeCopy()
makeCopy
in class DataProperty
public static NumericalProperty readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class DataProperty
javax.xml.bind.JAXBException
java.io.IOException
public static NumericalProperty fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class DataProperty
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class DataProperty
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.