Tabnine Logo
PropertyDescriptor.getDefaultExpression
Code IndexAdd Tabnine to your IDE (free)

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

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

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

private static String getExpression(final PropertyDescriptor descriptor)
{
 final PropertyExpression expression = descriptor.getDefaultExpression();
 return expression != null ? expression.getExpression() : null;
}
origin: de.smartics.properties/smartics-properties-config

private static String getExpression(final PropertyDescriptor descriptor)
{
 final PropertyExpression expression = descriptor.getDefaultExpression();
 return expression != null ? expression.getExpression() : null;
}
origin: de.smartics.properties/smartics-properties-report

@Override
public void handle(final PropertyReportItem item) throws ReportException
{
 super.handle(item);
 final PropertyDescriptor descriptor = item.getDescriptor();
 final String key = descriptor.getKey().toString();
 final PropertyExpression expression = descriptor.getDefaultExpression();
 final String value =
   expression != null && expression.getExpression() != null ? expression
     .getExpression() : "";
 currentProperties.setProperty(key, value);
}
origin: de.smartics.properties/smartics-properties-config

if (currentValue == null)
 currentValue = descriptor.getDefaultExpression();
 if (currentValue == null)
origin: de.smartics.properties/smartics-properties-config

/**
 * {@inheritDoc}
 *
 * @see de.smartics.properties.spi.config.resolve.ResolveContext#get(java.lang.String)
 */
@Override
public String get(final String key) throws IllegalArgumentException,
 UnknownPropertyException, PropertyValidationException
{
 final Property property = config.getProperty(key);
 if (property == null)
 {
  throw new UnknownPropertyException(getKey(), key);
 }
 String value = property.getValue();
 if (value == null)
 {
  final PropertyDescriptor descriptor = registry.get(key);
  final PropertyExpression expression = descriptor.getDefaultExpression();
  value = (expression != null ? expression.getExpression() : null);
 }
 return value;
}
// --- object basics --------------------------------------------------------
origin: de.smartics.properties/smartics-properties-report

  descriptor.getDefaultExpression().getExpression();
if (expression != null)
de.smartics.properties.api.core.domainPropertyDescriptorgetDefaultExpression

Javadoc

Returns the expression to use to construct the value of the property. An expression may reference another property or may serve as a template containing any number of property references.

Resolving fails if at least one property reference cannot be resolved.

$ server/path/${command}}

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.
  • 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
  • getValueRange
    Returns the range of values allowed for this property. The returned value may be null if there is no
  • 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

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ImageIO (javax.imageio)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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