Interface IPropertyGetter
-
- All Known Implementing Classes:
AbstractPropertyGetter
,BibtexPropertyGetter
,CsvPropertyGetter
,EmfPropertyGetter
,ExtendedPropertyGetter
,HtmlPropertyGetter
,JavaPropertyGetter
,JdtPropertyGetter
,ModelGroup.DelegatingModelElementPropertyGetter
,MuddleModelPropertyGetter
,PatternMatchPropertyGetter
,PlainXmlPropertyGetter
,SimulinkPropertyGetter
,SpreadsheetPropertyGetter
,TuplePropertyGetter
,YamlPropertyGetter
public interface IPropertyGetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Object
hasProperty(Object object, String property)
This method is provided for backwards compatibility and convenience.default boolean
hasProperty(Object object, String property, IEolContext context)
Convenience method for checking whether a property exists.default Object
invoke(Object object, String property)
This method is provided for backwards compatibility and convenience.Object
invoke(Object object, String property, IEolContext context)
Invokes a property on a model element.
-
-
-
Method Detail
-
invoke
Object invoke(Object object, String property, IEolContext context) throws EolRuntimeException
Invokes a property on a model element.- Parameters:
object
- The model element.property
- The property name of the model element.context
- The execution context.- Returns:
- The value of the requested property.
- Throws:
EolIllegalPropertyException
- If the property could not be found.EolRuntimeException
- If an exception occurs when querying the model for the property.- Since:
- 1.6
-
hasProperty
default boolean hasProperty(Object object, String property, IEolContext context)
Convenience method for checking whether a property exists.- Parameters:
object
- The model element.property
- The property name of the model element.ast
- Where this is being called from.context
- The execution context.- Returns:
true
if the property exists,false
otherwise.- Since:
- 1.6
-
invoke
default Object invoke(Object object, String property) throws EolRuntimeException
This method is provided for backwards compatibility and convenience. Implementations should override theinvoke(Object, String, IEolContext)
method. Callers should prefer theinvoke(Object, String, IEolContext)
method where possible.- Parameters:
object
-property
-- Returns:
- Throws:
EolRuntimeException
-
hasProperty
default Object hasProperty(Object object, String property)
This method is provided for backwards compatibility and convenience. Implementations should override thehasProperty(Object, String, IEolContext)
method. Callers should prefer thehasProperty(Object, String, IEolContext)
method where possible.- Parameters:
object
-property
-- Returns:
-
-