Interface IPropertyGetter
- All Known Implementing Classes:
AbstractPropertyGetter
,BibtexPropertyGetter
,CsvPropertyGetter
,EmfPropertyGetter
,ExtendedPropertyGetter
,HtmlPropertyGetter
,JavaPropertyGetter
,JdtPropertyGetter
,JsonPropertyGetter
,ModelGroup.DelegatingModelElementPropertyGetter
,MuddleModelPropertyGetter
,PatternMatchPropertyGetter
,PlainXmlPropertyGetter
,SimulinkPropertyGetter
,SpreadsheetPropertyGetter
,TuplePropertyGetter
,YamlPropertyGetter
public interface IPropertyGetter
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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
This method is provided for backwards compatibility and convenience.invoke
(Object object, String property, IEolContext context) Invokes a property on a model element.
-
Method Details
-
invoke
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
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
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
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:
-