de.grogra.xl.impl.property
public abstract class CompiletimeModel.PropertyImpl extends java.lang.Object implements CompiletimeModel.Property
| Constructor and Description |
|---|
CompiletimeModel.PropertyImpl(java.lang.Class<?> type,
java.lang.String id) |
CompiletimeModel.PropertyImpl(Type<?> type,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
CompiletimeModel.Property |
getComponentProperty()
Returns the component property.
|
protected abstract CompiletimeModel.PropertyImpl |
getComponentProperty(java.lang.String id) |
CompiletimeModel |
getModel()
Returns this property's compile-time model.
|
java.lang.String |
getRuntimeName()
Defines the name of the corresponding
RuntimeModel.Property. |
CompiletimeModel.Property |
getSubProperty(java.lang.String name)
Returns a subproperty.
|
protected abstract CompiletimeModel.PropertyImpl |
getSubProperty(java.lang.String name,
java.lang.String id) |
Type<?> |
getType()
Returns this property's type.
|
CompiletimeModel.Property |
getTypeCastProperty(Type<?> type)
Returns a type-cast property.
|
protected abstract CompiletimeModel.PropertyImpl |
getTypeCastProperty(Type<?> type,
java.lang.String id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRuntimeTypepublic CompiletimeModel.PropertyImpl(java.lang.Class<?> type,
java.lang.String id)
public CompiletimeModel.PropertyImpl(Type<?> type, java.lang.String id)
public CompiletimeModel.Property getComponentProperty()
CompiletimeModel.Propertynull is returned.getComponentProperty in interface CompiletimeModel.Propertyprotected abstract CompiletimeModel.PropertyImpl getComponentProperty(java.lang.String id)
public CompiletimeModel getModel()
CompiletimeModel.PropertygetModel in interface CompiletimeModel.Propertypublic java.lang.String getRuntimeName()
CompiletimeModel.PropertyRuntimeModel.Property. This name
is used during run-time in invocations of
RuntimeModel.propertyForName(String, ClassLoader)
in order to obtain the RuntimeModel.Property
which corresponds to this compile-time property.getRuntimeName in interface CompiletimeModel.Propertypublic CompiletimeModel.Property getSubProperty(java.lang.String name)
CompiletimeModel.Propertyname, then this subproperty is returned, otherwise
null.getSubProperty in interface CompiletimeModel.Propertyname - the name of the subpropertyprotected abstract CompiletimeModel.PropertyImpl getSubProperty(java.lang.String name, java.lang.String id)
public Type<?> getType()
CompiletimeModel.PropertygetType in interface CompiletimeModel.Propertypublic CompiletimeModel.Property getTypeCastProperty(Type<?> type)
CompiletimeModel.Propertytype has to be
a reference type which is assignable to the type of this
property. The method returns the corresponding type-cast property.getTypeCastProperty in interface CompiletimeModel.Propertytype - the type of the type-cast propertyprotected abstract CompiletimeModel.PropertyImpl getTypeCastProperty(Type<?> type, java.lang.String id)