Class LoadProperties
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.LoadProperties
-
- All Implemented Interfaces:
IBuildlangElement,ILanguageElement
public class LoadProperties extends java.lang.Object implements IBuildlangElement
Represents a file of properties to be loaded.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description LoadProperties(java.lang.String path, Script parent)Creates a new properties object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IVisitor visitor)Accepts the visitor for visiting.ScriptgetParent()Returns the parent element.java.lang.StringgetPath()Returns the original path as String.
-
-
-
Field Detail
-
path
private java.lang.String path
-
parent
private Script parent
-
-
Constructor Detail
-
LoadProperties
public LoadProperties(java.lang.String path, Script parent)Creates a new properties object.- Parameters:
path- the path from where to load the propertiesparent- the parent script
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Returns the original path as String.- Returns:
- the original path
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Description copied from interface:IBuildlangElementAccepts the visitor for visiting.- Specified by:
acceptin interfaceIBuildlangElement- Parameters:
visitor- the visitor to be used- Returns:
- the result of visiting this instance (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
getParent
public Script getParent()
Description copied from interface:ILanguageElementReturns the parent element.- Specified by:
getParentin interfaceILanguageElement- Returns:
- the parent element (may be null if unknown)
-
-