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

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

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

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

/**
 * Default constructor.
 *
 * @param descriptor the list descriptor to analyze.
 * @throws NullArgumentException if {@code descriptor} is <code>null</code>.
 * @throws IllegalArgumentException if the descriptor does not describe a list
 *           property or lacks the required {@link ListValueConstraint}.
 */
public ListPropertyHelper(final PropertyDescriptor descriptor)
 throws NullArgumentException, IllegalArgumentException
{
 this.descriptor = Arg.checkNotNull("descriptor", descriptor);
 final Class<?> propertyType = descriptor.getType().getType();
 if (!List.class.isAssignableFrom(propertyType))
 {
  throw new IllegalArgumentException(
    "The descriptor suppossed to describe a list property"
      + " actually describes a property of type '" + propertyType
      + "'.");
 }
 listValueConstraint = fetchListValueConstraint(descriptor);
}
origin: de.smartics.properties/smartics-properties-report

private PropertyValueComment loadValueComment(final PropertyReport report,
  final PropertyDescriptor descriptor)
{
 final Class<?> type = descriptor.getType().getType();
 if (type.isEnum()) // TODO: Constant class?
 {
  final String typeName = type.getName();
  final JavaClass javaClass = javaProjectBuilder.getClassByName(typeName);
  if (javaClass != null)
  {
   return loadValueComment(report, javaClass);
  }
  else
  {
   report.addProblem(new ReportProblem("Cannot find type class '"
                     + typeName + "'."));
  }
 }
 return new PropertyValueComment(null);
}
origin: de.smartics.properties/smartics-properties-core

final Class<?> type = descriptor.getType().getType();
origin: de.smartics.properties/smartics-properties-report

final PropertyType type = descriptor.getType();
addElement(rootElement, "type", type.toString()); // NOPMD
final UseType useType = descriptor.getUseType();
de.smartics.properties.api.core.domainPropertyDescriptorgetType

Javadoc

Returns the type of the property value.

This value must not be null.

If there is no value range specified for the property type, the type is either required to specify a static fromString method or is a standard or registered type whose conversion rules are well known.

 
public static T fromString(String value); 

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
  • 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

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best plugins for Eclipse
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