public interface GriffonClass
GriffonArtifact
points to the real artifact instance, this class points to the meta
information that can be obtained from such artifact.Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
STANDARD_PROPERTIES |
Modifier and Type | Method and Description |
---|---|
GriffonApplication |
getApplication() |
java.lang.String |
getArtifactType()
Returns the artifact type represented by the GriffonClass
|
java.lang.Class<?> |
getClazz()
Returns the actual class represented by the GriffonClass
|
java.lang.String |
getFullName()
Returns the full name of the class in the application with the the trailing convention part and with
the package name.
|
java.lang.String |
getLogicalPropertyName()
Returns the logical name of the class as a property name
|
java.lang.String |
getName()
Returns the logical name of the class in the application without the trailing convention part if applicable
and without the package name.
|
java.lang.String |
getNaturalName()
Returns the name of the property in natural terms (eg.
|
java.lang.String |
getPackageName()
Returns the package name of the class.
|
java.lang.String |
getPropertyName()
Returns the name of the class as a property name
|
java.lang.Object |
getPropertyValue(java.lang.String name)
Gets the initial value of the given property on the class.
|
<T> T |
getPropertyValue(java.lang.String name,
java.lang.Class<T> type)
Obtains a property value for the given name and type.
|
java.lang.String |
getShortName()
Returns the short name of the class without package prefix
|
boolean |
hasProperty(java.lang.String name)
Returns true if the class has the specified property.
|
@Nonnull GriffonApplication getApplication()
@Nullable java.lang.Object getPropertyValue(@Nonnull java.lang.String name)
name
- The name of the propertyboolean hasProperty(@Nonnull java.lang.String name)
name
- The name of the property@Nonnull java.lang.String getName()
@Nonnull java.lang.String getShortName()
@Nonnull java.lang.String getFullName()
@Nonnull java.lang.String getPropertyName()
@Nonnull java.lang.String getLogicalPropertyName()
@Nonnull java.lang.String getNaturalName()
@Nonnull java.lang.String getPackageName()
@Nonnull java.lang.Class<?> getClazz()
@Nonnull java.lang.String getArtifactType()
@Nullable <T> T getPropertyValue(@Nonnull java.lang.String name, @Nonnull java.lang.Class<T> type)
name
- The nametype
- The type