java.lang.Object
de.grogra.xl.impl.property.CompiletimeModel.PropertyImpl
- All Implemented Interfaces:
CompiletimeModel.Property
- Direct Known Subclasses:
PropertyCompiletime.GraphProperty
- Enclosing class:
- CompiletimeModel
public abstract class CompiletimeModel.PropertyImpl
extends Object
implements CompiletimeModel.Property
-
Constructor Summary
ConstructorDescriptionPropertyImpl
(Type<?> type, String id) PropertyImpl
(Class<?> type, String id) -
Method Summary
Modifier and TypeMethodDescriptionReturns the component property.protected abstract CompiletimeModel.PropertyImpl
getModel()
Returns this property's compile-time model.Defines the name of the correspondingRuntimeModel.Property
.getSubProperty
(String name) Returns a subproperty.protected abstract CompiletimeModel.PropertyImpl
getSubProperty
(String name, String id) Type<?>
getType()
Returns this property's type.getTypeCastProperty
(Type<?> type) Returns a type-cast property.protected abstract CompiletimeModel.PropertyImpl
getTypeCastProperty
(Type<?> type, String id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.xl.property.CompiletimeModel.Property
getRuntimeType
-
Constructor Details
-
PropertyImpl
-
PropertyImpl
-
-
Method Details
-
getModel
Description copied from interface:CompiletimeModel.Property
Returns this property's compile-time model. This is the model which has declared this property.- Specified by:
getModel
in interfaceCompiletimeModel.Property
- Returns:
- this property's model
-
getType
Description copied from interface:CompiletimeModel.Property
Returns this property's type.- Specified by:
getType
in interfaceCompiletimeModel.Property
- Returns:
- this property's type
-
getSubProperty
Description copied from interface:CompiletimeModel.Property
Returns a subproperty. If this property has a subproperty namedname
, then this subproperty is returned, otherwisenull
.- Specified by:
getSubProperty
in interfaceCompiletimeModel.Property
- Parameters:
name
- the name of the subproperty- Returns:
- the subproperty, if any
-
getComponentProperty
Description copied from interface:CompiletimeModel.Property
Returns the component property. If this property has an array type, then a component property may exist and is returned by this method, otherwisenull
is returned.- Specified by:
getComponentProperty
in interfaceCompiletimeModel.Property
- Returns:
- the component property, if any
-
getTypeCastProperty
Description copied from interface:CompiletimeModel.Property
Returns a type-cast property.type
has to be a reference type which is assignable to the type of this property. The method returns the corresponding type-cast property.- Specified by:
getTypeCastProperty
in interfaceCompiletimeModel.Property
- Parameters:
type
- the type of the type-cast property- Returns:
- the type-cast property
-
getRuntimeName
Description copied from interface:CompiletimeModel.Property
Defines the name of the correspondingRuntimeModel.Property
. This name is used during run-time in invocations ofRuntimeModel.propertyForName(String, ClassLoader)
in order to obtain theRuntimeModel.Property
which corresponds to this compile-time property.- Specified by:
getRuntimeName
in interfaceCompiletimeModel.Property
- Returns:
- the name of the corresponding run-time property
-
getSubProperty
-
getComponentProperty
-
getTypeCastProperty
-