Package org.apache.ofbiz.minilang
Class MiniLangElement
- java.lang.Object
-
- org.apache.ofbiz.minilang.MiniLangElement
-
- Direct Known Subclasses:
Calculate.CalcOp
,Calculate.NumberOp
,CombinedCondition
,ElseIf
,MessageElement
,MethodObject
,MethodOperation
,SimpleMethod
public class MiniLangElement extends java.lang.Object
A single Mini-language element. This class is the superclass for all XML element models.
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleMethod
simpleMethod
-
Constructor Summary
Constructors Constructor Description MiniLangElement(org.w3c.dom.Element element, SimpleMethod simpleMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
gatherArtifactInfo(ArtifactInfoContext aic)
Updatesaic
with this element's artifact information.java.lang.String
getLineNumber()
Returns the source code line number for this element.SimpleMethod
getSimpleMethod()
Returns the containingSimpleMethod
object.java.lang.String
getTagName()
Returns this element's tag name.void
outputTraceMessage(MethodContext methodContext, java.lang.String... messages)
Logs a trace message.java.lang.String
toString()
-
-
-
Field Detail
-
simpleMethod
protected final SimpleMethod simpleMethod
-
-
Constructor Detail
-
MiniLangElement
public MiniLangElement(org.w3c.dom.Element element, SimpleMethod simpleMethod)
-
-
Method Detail
-
gatherArtifactInfo
public void gatherArtifactInfo(ArtifactInfoContext aic)
Updatesaic
with this element's artifact information.- Parameters:
aic
- The artifact information context
-
getLineNumber
public java.lang.String getLineNumber()
Returns the source code line number for this element.- Returns:
- The source code line number for this element
-
getSimpleMethod
public SimpleMethod getSimpleMethod()
Returns the containingSimpleMethod
object.- Returns:
- The containing
SimpleMethod
object
-
getTagName
public java.lang.String getTagName()
Returns this element's tag name.- Returns:
- This element's tag name
-
outputTraceMessage
public void outputTraceMessage(MethodContext methodContext, java.lang.String... messages)
Logs a trace message.- Parameters:
methodContext
-messages
-
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-