org.cip4.jdflib.extensions
Class IntentHelper

java.lang.Object
  extended by org.cip4.jdflib.extensions.BaseXJDFHelper
      extended by org.cip4.jdflib.extensions.IntentHelper

public class IntentHelper
extends BaseXJDFHelper

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Field Summary
static boolean bSpanAsAttribute
           
 
Fields inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
log, theElement
 
Constructor Summary
IntentHelper(KElement intent)
           
 
Method Summary
 KElement getIntent()
           
 String getName()
           
 KElement getResource()
           
 String getSpan(String spanName)
          get the span attribute - initially try attribute, else Element/@Actual
 void setSpan(KElement resource, String att, String val, String dataType)
          set the span in a subelement
 void setSpan(String att, String val, String dataType)
           
 String toString()
           
 
Methods inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
getID, getRoot, getXPathValue, setXPathValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bSpanAsAttribute

public static boolean bSpanAsAttribute
Constructor Detail

IntentHelper

public IntentHelper(KElement intent)
Parameters:
intent -
Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
See Also:
Object.toString()

getIntent

public KElement getIntent()
Returns:
the "Intent" element

getResource

public KElement getResource()
Returns:
the detailed intent resource

getName

public String getName()
Returns:

setSpan

public void setSpan(String att,
                    String val,
                    String dataType)
Parameters:
att -
val -
dataType - - if null always set as simple attribute

getSpan

public String getSpan(String spanName)
get the span attribute - initially try attribute, else Element/@Actual

Parameters:
spanName -
Returns:

setSpan

public void setSpan(KElement resource,
                    String att,
                    String val,
                    String dataType)
set the span in a subelement

Parameters:
resource -
att -
val -
dataType -


Copyright © 2013. All Rights Reserved.