de.smartics.properties.spi.core.metadata
Class PropertyMetaDataDefaults

Package class diagram package PropertyMetaDataDefaults
java.lang.Object
  extended by de.smartics.properties.spi.core.metadata.PropertyMetaDataDefaults
All Implemented Interfaces:
ProjectdocAnnotationCollector.Defaults

public final class PropertyMetaDataDefaults
     
     
extends Object
implements ProjectdocAnnotationCollector.Defaults

Implementation to provide defaults from the project set annotation.


Constructor Summary
PropertyMetaDataDefaults(Class<?> type)
          Default constructor using the declaring type.
PropertyMetaDataDefaults(Class<?> type, Method propertyMethod)
          Default constructor using the declaring and method type.
PropertyMetaDataDefaults(Method propertyMethod)
          Default constructor using the method and adding the name of the method.
 
Method Summary
 String getName()
          Returns the default name.
 String getSpace()
          Returns the default space.
 String getTitle()
          Returns the default title.
static PropertyMetaDataDefaults propertySet(Method propertyMethod)
          Retruns the property set metadata defaults.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyMetaDataDefaults

public PropertyMetaDataDefaults(Class<?> type)
                         throws NullPointerException
Default constructor using the declaring type. The default lack the method name specifics.

Parameters:
type - the type to extract default values for title, name and space.
Throws:
NullPointerException - if type is null.

PropertyMetaDataDefaults

public PropertyMetaDataDefaults(Class<?> type,
                                Method propertyMethod)
                         throws NullPointerException
Default constructor using the declaring and method type.

Parameters:
type - the type to extract default values for title, name and space.
propertyMethod - the method to check for a property set annotation that overrides the one of the type.
Throws:
NullPointerException - if type is null.

PropertyMetaDataDefaults

public PropertyMetaDataDefaults(Method propertyMethod)
Default constructor using the method and adding the name of the method.

Parameters:
propertyMethod - the method to derive default values.
Method Detail

propertySet

public static PropertyMetaDataDefaults propertySet(Method propertyMethod)
Retruns the property set metadata defaults.

Parameters:
propertyMethod - the method of the property whose set defaults are requested.
Returns:
the defaults for the set referenced by the property identified by the given method.

getTitle

public String getTitle()
Description copied from interface: ProjectdocAnnotationCollector.Defaults
Returns the default title. May be null.

Specified by:
getTitle in interface ProjectdocAnnotationCollector.Defaults
Returns:
the default title. May be null.

getName

public String getName()
Description copied from interface: ProjectdocAnnotationCollector.Defaults
Returns the default name. May be null.

Specified by:
getName in interface ProjectdocAnnotationCollector.Defaults
Returns:
the default name. May be null.

getSpace

public String getSpace()
Description copied from interface: ProjectdocAnnotationCollector.Defaults
Returns the default space. May be null.

Specified by:
getSpace in interface ProjectdocAnnotationCollector.Defaults
Returns:
the default space. May be null.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.