Interface IPropertyGetter
-
- All Known Implementing Classes:
AbstractPropertyGetter
,BibtexPropertyGetter
,CsvPropertyGetter
,EmfPropertyGetter
,ExtendedPropertyGetter
,JavaPropertyGetter
,ModelGroup.DelegatingModelElementPropertyGetter
,MuddleModelPropertyGetter
,PatternMatchPropertyGetter
,PlainXmlPropertyGetter
,SimulinkPropertyGetter
,SpreadsheetPropertyGetter
,TuplePropertyGetter
public interface IPropertyGetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Object
hasProperty(java.lang.Object object, java.lang.String property)
This method is provided for backwards compatibility and convenience.default boolean
hasProperty(java.lang.Object object, java.lang.String property, IEolContext context)
Convenience method for checking whether a property exists.default java.lang.Object
invoke(java.lang.Object object, java.lang.String property)
This method is provided for backwards compatibility and convenience.java.lang.Object
invoke(java.lang.Object object, java.lang.String property, IEolContext context)
Invokes a property on a model element.
-
-
-
Method Detail
-
invoke
java.lang.Object invoke(java.lang.Object object, java.lang.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(java.lang.Object object, java.lang.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 java.lang.Object invoke(java.lang.Object object, java.lang.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 java.lang.Object hasProperty(java.lang.Object object, java.lang.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:
-
-