congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PropertyDescriptor.getValueRange
Code IndexAdd Tabnine to your IDE (free)

How to use
getValueRange
method
in
de.smartics.properties.api.core.domain.PropertyDescriptor

Best Java code snippets using de.smartics.properties.api.core.domain.PropertyDescriptor.getValueRange (Showing top 2 results out of 315)

origin: de.smartics.properties/smartics-properties-report

private void addRanges(final PropertyDescriptor descriptor)
{
 final PropertyValueRange<?> range = descriptor.getValueRange();
 if (range != null)
 {
  final Element valueRangeElement = new Element("valueRange", ns);
  final PropertyValueComment valueComment = reportItem.getValueComment();
  if (valueComment == null)
  {
   return;
  }
  final String summary =
    htmlUtils.cleanHtmlAndJavadoc(valueComment.getSummary());
  addElement(valueRangeElement, "summary", summary);
  final List<?> values = range.getValues();
  for (final Object value : values)
  {
   final String description =
     htmlUtils.cleanHtmlAndJavadoc(valueComment.getValueComment(value));
   final Element element = new Element("element", ns);
   addElement(element, "value", value);
   addElement(element, "description", description);
   valueRangeElement.addContent(element);
  }
  rootElement.addContent(valueRangeElement);
 }
}
origin: de.smartics.properties/smartics-properties-core

/**
 * Usually the type is the type of the property of the descriptor. Only in the
 * case of a list, the type is the type of the list members.
 */
static void ensureConverter(final PropertyDescriptor descriptor,
  final Class<?> type)
{
 final Converter converter = ConvertUtils.lookup(type);
 if (converter != null)
 {
  return;
 }
 final PropertyValueRange<?> range = descriptor.getValueRange();
 if (range != null)
 {
  ConvertUtils.register(new PropertyValueRangeConverter(range, type), type);
 }
 else
 {
  ConvertUtils.register(new FromStringTypeConverter(type), type);
 }
}
de.smartics.properties.api.core.domainPropertyDescriptorgetValueRange

Javadoc

Returns the range of values allowed for this property.

The returned value may be null if there is no specific range of values the value of the property has to be part of. For instance a property may have no value range or only value ranges that are not enumerable. The latter may only be modeled by a property constraint.

Popular methods of PropertyDescriptor

  • getConstraints
    Returns a list of constraints a value for the property has to meet.
  • getKey
    Returns the key of the property. This value must not be null.
  • getDefaultExpression
    Returns the expression to use to construct the value of the property. An expression may reference an
  • getDocumentName
    Returns the name of the document that identifies the document uniquely within the context of the pro
  • getType
    Returns the type of the property value. This value must not be null. If there is no value range sp
  • isMandatory
    Checks if the property is mandatory to be not null. If the property is not mandatory, it is optional
  • getCategories
    Returns the categories this property is associated with.
  • getDeclaringType
    Returns the type that declares the property that is described by this instance.
  • getDocumentMetaData
    Returns the meta data information for the property. This value must not be null.
  • getUpdateIntervalInMs
    Returns the update interval in milliseconds (ms). An application may cache the value of the property
  • getUseType
    Returns the use type of the property.
  • isRuntimeMutable
    Checks whether or not the property is mutable at runtime.
  • getUseType,
  • isRuntimeMutable,
  • isSecured

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now