Tabnine Logo
PropertyKey.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
de.smartics.properties.api.core.domain.PropertyKey

Best Java code snippets using de.smartics.properties.api.core.domain.PropertyKey.toString (Showing top 20 results out of 315)

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

@Override
public final void addPropertyChangeListener(final PropertyKey name,
  final PropertyChangeListener listener) throws NullPointerException
{
 support.addPropertyChangeListener(name.toString(), listener);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final void removePropertyChangeListener(final PropertyKey name,
  final PropertyChangeListener listener) throws NullPointerException
{
 support.removePropertyChangeListener(name.toString(), listener);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final PropertyDescriptor getDescriptor(final PropertyKey key)
 throws UnknownPropertyException
{
 return getDescriptor(key.toString());
}
origin: de.smartics.properties/smartics-properties-config

private static boolean isResolvementFailureOfPlaceholder(
  final PropertyValueResolveException e, final Property property)
{
 return !property.getName().equals(e.getPropertyKey().toString());
}
origin: de.smartics.properties/smartics-properties-config

private void checkValidPair(final PropertyDescriptor descriptor,
  final Property property) throws IllegalArgumentException
{
 final String name = property.getName();
 final String descriptorName = descriptor.getKey().toString();
 if (!name.equals(descriptorName))
 {
  throw new IllegalArgumentException("Property value with key '" + name
                    + "' does not match the key '"
                    + descriptorName
                    + "' in the property descriptor.");
 }
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final DescribedProperty getProperty(final PropertyKey key)
 throws IllegalArgumentException, UnknownPropertyException
{
 final PropertyDescriptor descriptor = getPropertyDescriptor(key.toString());
 return getProperty(descriptor);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final ValidatedProperty getValidatedProperty(final PropertyKey key,
  final Object defaultValue) throws IllegalArgumentException,
 UnknownPropertyException, PropertyValidationException
{
 final PropertyDescriptor descriptor = getDescriptor(key.toString());
 return getValidatedProperty(descriptor, defaultValue);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final ValidatedProperty getValidatedProperty(final PropertyKey key,
  final Object defaultValue) throws IllegalArgumentException,
 UnknownPropertyException, PropertyValidationException, SecurityException
{
 final PropertyDescriptor descriptor = getPropertyDescriptor(key.toString());
 return getValidatedProperty(descriptor, defaultValue);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final Object getPropertyValue(final PropertyKey key)
 throws IllegalArgumentException, UnknownPropertyException,
 PropertyValidationException
{
 final PropertyDescriptor descriptor = getDescriptor(key.toString());
 return getPropertyValue(descriptor);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final Object getPropertyValue(final PropertyKey key)
 throws IllegalArgumentException, UnknownPropertyException,
 PropertyValidationException
{
 final PropertyDescriptor descriptor = getPropertyDescriptor(key.toString());
 return getPropertyValue(descriptor, null);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final DescribedProperty getProperty(final PropertyKey key)
 throws IllegalArgumentException, UnknownPropertyException
{
 final PropertyDescriptor descriptor = getDescriptor(key.toString());
 return getProperty(descriptor);
}
origin: de.smartics.properties/smartics-properties-report

/**
 * Returns the unique title of the report within the space.
 *
 * @return the unique title of the report within the space.
 */
public String getTitle()
{
 final String metadataValue = descriptor.getDocumentMetaData().getTitle();
 if (StringUtils.isBlank(metadataValue))
 {
  return descriptor.getKey().toString();
 }
 return metadataValue;
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final Property setProperty(final PropertyKey key, final String value)
 throws NullPointerException, PropertyValidationException,
 ReadOnlyPropertyException
{
 Arg.checkNotNull("key", key);
 checkWritable(key, value);
 final String name = key.toString();
 return setPropertyAndFireEvent(name, value);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final Property setProperty(final PropertyKey key, final String value)
 throws NullPointerException, PropertyValidationException,
 ReadOnlyPropertyException
{
 final Property oldProperty = getDelegate().setProperty(key, value);
 final String stringKey = key.toString();
 cache.removeFromCache(stringKey);
 return oldProperty;
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final Property unsetProperty(final PropertyKey key)
 throws NullPointerException, ReadOnlyPropertyException
{
 final Property oldProperty = getDelegate().unsetProperty(key);
 final String stringKey = key.toString();
 cache.removeFromCache(stringKey);
 return oldProperty;
}
origin: de.smartics.properties/smartics-properties-config

private DescribedProperty getPropertyInternal(
  final PropertyDescriptor descriptor)
{
 final String name = descriptor.getKey().toString();
 final Property property = getPropertyFromStore(name);
 // if (property == null || property.getValue() == null)
 // { // if alternative lookups have to be provided, the 'properties' have to
 // be updated on every change.
 // final Property alt = properties.getValue(name);
 // property = alt != null ? alt : property;
 // }
 final DescribedProperty describedProperty =
   new DescribedProperty(this.getKey(), descriptor, property);
 return describedProperty;
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final Property unsetProperty(final PropertyKey key)
 throws NullPointerException, ReadOnlyPropertyException
{
 Arg.checkNotNull("key", key);
 checkWritable(key, null);
 final String name = key.toString();
 final Property oldProperty = deletePropertyInStore(name);
 firePropertyChange(name, oldProperty.getValue(), null);
 return oldProperty;
}
origin: de.smartics.properties/smartics-properties-config

private void addProperties(
  final Map<Class<?>, List<PropertyDescriptor>> descriptorMap,
  final MultiSourceProperties compositeProperties)
{
 final Properties properties = new Properties();
 for (final Entry<Class<?>, List<PropertyDescriptor>> entry : descriptorMap
   .entrySet())
 {
  final List<PropertyDescriptor> descriptors = entry.getValue();
  for (final PropertyDescriptor descriptor : descriptors)
  {
   final String propertyKey = descriptor.getKey().toString();
   final Property property =
     compositeProperties.getValue(propertyKey, true);
   if (property != null && property.getValue() != null)
   {
    properties.put(propertyKey, property);
   }
  }
 }
 final ConfigurationKey<?> key = compositeProperties.getConfigurationKey();
 final ConfigurationPropertiesManagement configuration =
   factoryCache.ensureManagement(key);
 final PropertyProvider provider =
   new PropertiesPropertyProvider(key, new PropertyLocation(
     "classpath-various"), properties);
 configuration.addDefinitions(provider);
}
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

private void addProperties(final MultiSourceProperties compositeProperties)
{
 final Properties properties = new Properties();
 final Class<?> type = BootProperties.class;
 final PropertiesContext context = configuration.getContext(type);
 final PropertyMetaDataParser propertyDescriptorParser =
   PropertyMetaDataParser.create(context);
 final List<PropertyDescriptor> descriptors =
   propertyDescriptorParser.readDescriptors(type);
 for (final PropertyDescriptor descriptor : descriptors)
 {
  final String propertyKey = descriptor.getKey().toString();
  final Property property = compositeProperties.getValue(propertyKey);
  if (property != null && property.getValue() != null)
  {
   properties.put(propertyKey, property);
  }
  else
  {
   properties.remove(propertyKey);
  }
 }
 configuration.addDescriptors(type);
 final PropertyProvider provider =
   new PropertiesPropertyProvider(configuration.getKey(),
     new PropertyLocation("boot-various"), properties);
 configuration.addDefinitions(provider);
}
de.smartics.properties.api.core.domainPropertyKeytoString

Javadoc

Returns the string representation of the object.

Popular methods of PropertyKey

  • getPropertySet
    Returns the name of the set the property belongs to. This is the scope within the #getName() is uniq
  • <init>
    Default constructor.
  • create
    Creates an instance for the given set and name.
  • equals
  • getName
    Returns the name of the property. This value must not be null.
  • hashCode

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook extensions
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