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 Set<String> |
STANDARD_PROPERTIES |
Modifier and Type | Method and Description |
---|---|
GriffonApplication |
getApplication() |
String |
getArtifactType()
Returns the artifact type represented by the GriffonClass
|
Class<?> |
getClazz()
Returns the actual class represented by the GriffonClass
|
String |
getFullName()
Returns the full name of the class in the application with the the trailing convention part and with
the package name.
|
String |
getLogicalPropertyName()
Returns the logical name of the class as a property name
|
String |
getName()
Returns the logical name of the class in the application without the trailing convention part if applicable
and without the package name.
|
String |
getNaturalName()
Returns the name of the property in natural terms (eg.
|
String |
getPackageName()
Returns the package name of the class.
|
String |
getPropertyName()
Returns the name of the class as a property name
|
Object |
getPropertyValue(String name)
Gets the initial value of the given property on the class.
|
<T> T |
getPropertyValue(String name,
Class<T> type)
Obtains a property value for the given name and type.
|
String |
getShortName()
Returns the short name of the class without package prefix
|
boolean |
hasProperty(String name)
Returns true if the class has the specified property.
|
@Nonnull GriffonApplication getApplication()
@Nullable Object getPropertyValue(@Nonnull String name)
name
- The name of the propertyboolean hasProperty(@Nonnull String name)
name
- The name of the property@Nonnull String getName()
@Nonnull String getShortName()
@Nonnull String getFullName()
@Nonnull String getPropertyName()
@Nonnull String getLogicalPropertyName()
@Nonnull String getNaturalName()
@Nonnull String getPackageName()
@Nonnull Class<?> getClazz()
@Nonnull String getArtifactType()