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
ConstructorsConstructorDescriptionPropertyImpl(Type<?> type, String id) PropertyImpl(Class<?> type, String id) -
Method Summary
Modifier and TypeMethodDescriptionReturns the component property.protected abstract CompiletimeModel.PropertyImplgetModel()Returns this property's compile-time model.Defines the name of the correspondingRuntimeModel.Property.getSubProperty(String name) Returns a subproperty.protected abstract CompiletimeModel.PropertyImplgetSubProperty(String name, String id) Type<?> getType()Returns this property's type.getTypeCastProperty(Type<?> type) Returns a type-cast property.protected abstract CompiletimeModel.PropertyImplgetTypeCastProperty(Type<?> type, String id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.xl.property.CompiletimeModel.Property
getRuntimeType
-
Constructor Details
-
PropertyImpl
-
PropertyImpl
-
-
Method Details
-
getModel
Description copied from interface:CompiletimeModel.PropertyReturns this property's compile-time model. This is the model which has declared this property.- Specified by:
getModelin interfaceCompiletimeModel.Property- Returns:
- this property's model
-
getType
Description copied from interface:CompiletimeModel.PropertyReturns this property's type.- Specified by:
getTypein interfaceCompiletimeModel.Property- Returns:
- this property's type
-
getSubProperty
Description copied from interface:CompiletimeModel.PropertyReturns a subproperty. If this property has a subproperty namedname, then this subproperty is returned, otherwisenull.- Specified by:
getSubPropertyin interfaceCompiletimeModel.Property- Parameters:
name- the name of the subproperty- Returns:
- the subproperty, if any
-
getComponentProperty
Description copied from interface:CompiletimeModel.PropertyReturns the component property. If this property has an array type, then a component property may exist and is returned by this method, otherwisenullis returned.- Specified by:
getComponentPropertyin interfaceCompiletimeModel.Property- Returns:
- the component property, if any
-
getTypeCastProperty
Description copied from interface:CompiletimeModel.PropertyReturns a type-cast property.typehas to be a reference type which is assignable to the type of this property. The method returns the corresponding type-cast property.- Specified by:
getTypeCastPropertyin interfaceCompiletimeModel.Property- Parameters:
type- the type of the type-cast property- Returns:
- the type-cast property
-
getRuntimeName
Description copied from interface:CompiletimeModel.PropertyDefines the name of the correspondingRuntimeModel.Property. This name is used during run-time in invocations ofRuntimeModel.propertyForName(String, ClassLoader)in order to obtain theRuntimeModel.Propertywhich corresponds to this compile-time property.- Specified by:
getRuntimeNamein interfaceCompiletimeModel.Property- Returns:
- the name of the corresponding run-time property
-
getSubProperty
-
getComponentProperty
-
getTypeCastProperty
-