Class JDFIntentResource

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
All Implemented Interfaces:
Serializable, Cloneable, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
JDFAutoArtDeliveryIntent, JDFAutoBindingIntent, JDFAutoColorIntent, JDFAutoDeliveryIntent, JDFAutoEmbossingIntent, JDFAutoFoldingIntent, JDFAutoHoleMakingIntent, JDFAutoInsertingIntent, JDFAutoLaminatingIntent, JDFAutoLayoutIntent, JDFAutoMediaIntent, JDFAutoNumberingIntent, JDFAutoPackingIntent, JDFAutoProductionIntent, JDFAutoProofingIntent, JDFAutoPublishingIntent, JDFAutoScreeningIntent, JDFAutoShapeCuttingIntent, JDFAutoSizeIntent, JDFAutoVariableIntent

public class JDFIntentResource extends JDFResource
See Also:
  • Constructor Details

    • JDFIntentResource

      public JDFIntentResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
      Parameters:
      myOwnerDocument -
      qualifiedName -
    • JDFIntentResource

      public JDFIntentResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
      Constructor for JDFIntentResource
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
    • JDFIntentResource

      public JDFIntentResource(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      Constructor for JDFIntentResource
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
  • Method Details

    • guessActual

      public static String guessActual(JDFElement root, String spanName)
      get the best match actual value from any element that may contain spans
      Parameters:
      root - the parent element
      spanName - the span element name
      Returns:
    • copyActualToProcess

      public static void copyActualToProcess(JDFElement intentRoot, JDFElement processRoot, String spanName, String attName)
      get the best match actual value from any element that may contain spans
      Parameters:
      intentRoot - the parent intent element
      processRoot - the parent process element
      spanName - the span element name
      attName - the target attribute element name, if null identical to spanName
    • copyProcessToActual

      public static void copyProcessToActual(JDFElement processRoot, JDFElement intentRoot, String attName, String spanName)
      get the best match actual value from any element that may contain spans
      Parameters:
      processRoot - the parent process element
      intentRoot - the parent intent element
      attName - the target attribute element name, if null identical to spanName
      spanName - the span element name
    • preferredToActual

      public int preferredToActual()
      set all actual values to the preset defined in preferred
      Returns:
      number of elements modified
    • preferredToActual

      public int preferredToActual(String key)
      set actual values to the preset defined in preferred
      Parameters:
      key - the key of the span resource to modify, if null do all
      Returns:
      number of elements modified
    • getSpans

      public VElement getSpans()
      get a list of all span resources
      Returns:
      VElement all Span elements of this
    • getValidClass

      public JDFResource.EnumResourceClass getValidClass()
      Typesafe attribute validation of Class
      Overrides:
      getValidClass in class JDFResource
      Returns:
      true if class is valid
    • init

      public boolean init()
      default initialization
      Overrides:
      init in class JDFResource
      Returns:
      true if successful
      See Also:
    • getCreateNumberSpan

      public JDFNumberSpan getCreateNumberSpan(String strName)
      get a number span
      Parameters:
      strName - name of the span element
      Returns:
      JDFNumberSpan the JDFNumberSpan
    • getCreateOptionSpan

      public JDFOptionSpan getCreateOptionSpan(String strName)
      get an option (boolean) span
      Parameters:
      strName - name of the span element
      Returns:
      JDFOptionSpan the JDFOptionSpan
    • getCreateIntegerSpan

      public JDFIntegerSpan getCreateIntegerSpan(String strName)
      get an integer span
      Parameters:
      strName - name of the span element exist
      Returns:
      JDFIntegerSpan the JDFIntegerSpan
    • getCreateNameSpan

      public JDFNameSpan getCreateNameSpan(String strName)
      get a namespan
      Parameters:
      strName - name of the span element
      Returns:
      JDFNameSpan the JDFNameSpan
    • getCreateEnumerationSpan

      public JDFEnumerationSpan getCreateEnumerationSpan(String strName)
      get an Enumeration span
      Parameters:
      strName - name of the span element
      Returns:
      JDFEnumerationSpan the JDFEnumerationSpan
    • getCreateStringSpan

      public JDFStringSpan getCreateStringSpan(String strName)
      get a string span
      Parameters:
      strName - name of the span element
      Returns:
      JDFStringSpan the JDFStringSpan
    • getCreateDurationSpan

      public JDFDurationSpan getCreateDurationSpan(String strName)
      get a duration span
      Parameters:
      strName - name of the span element
      Returns:
      getDurationSpan the getDurationSpan
    • getCreateTimeSpan

      public JDFTimeSpan getCreateTimeSpan(String strName)
      get a time span
      Parameters:
      strName - name of the span element
      Returns:
      getTimeSpan the getTimeSpan
    • getCreateCreateXYPairSpan

      public JDFXYPairSpan getCreateCreateXYPairSpan(String strName)
      get a XYPair span
      Parameters:
      strName - name of the span element
      Returns:
      JDFOptionSpan the JDFOptionSpan
    • getCreateCreateShapeSpan

      public JDFShapeSpan getCreateCreateShapeSpan(String strName)
      get a Shape span
      Parameters:
      strName - name of the span element
      Returns:
      JDFOptionSpan the JDFOptionSpan
    • getNumberSpan

      public JDFNumberSpan getNumberSpan(String strName)
      get a number span
      Parameters:
      strName - name of the span element
      Returns:
      JDFNumberSpan the JDFNumberSpan
    • getOptionSpan

      public JDFOptionSpan getOptionSpan(String strName)
      get an option (boolean) span
      Parameters:
      strName - name of the span element
      Returns:
      JDFOptionSpan the JDFOptionSpan
    • getIntegerSpan

      public JDFIntegerSpan getIntegerSpan(String strName)
      get an integer span
      Parameters:
      strName - name of the span element
      Returns:
      getIntegerSpan the getIntegerSpan
    • getNameSpan

      public JDFNameSpan getNameSpan(String strName)
      get a namespan
      Parameters:
      strName - name of the span element
      Returns:
      JDFNameSpan the JDFNameSpan
    • getEnumerationSpan

      public JDFEnumerationSpan getEnumerationSpan(String strName)
      get an Enumeration span
      Parameters:
      strName - name of the span element
      Returns:
      getEnumerationSpan the getEnumerationSpan
    • getStringSpan

      public JDFStringSpan getStringSpan(String strName)
      get a string span
      Parameters:
      strName - name of the span element
      Returns:
      JDFStringSpan the JDFStringSpan
    • getDurationSpan

      public JDFDurationSpan getDurationSpan(String strName)
      get a duration span
      Parameters:
      strName - name of the span element
      Returns:
      getDurationSpan the getDurationSpan
    • getTimeSpan

      public JDFTimeSpan getTimeSpan(String strName)
      get a time span
      Parameters:
      strName - name of the span element
      Returns:
      getTimeSpan the getTimeSpan
    • getXYPairSpan

      public JDFXYPairSpan getXYPairSpan(String strName)
      get a XYPair span
      Parameters:
      strName - name of the span element
      Returns:
      JDFXYPairSpan the JDFXYPairSpan
    • getShapeSpan

      public JDFShapeSpan getShapeSpan(String strName)
      get a Shape span
      Parameters:
      strName - name of the span element
      Returns:
      JDFShapeSpan the JDFShapeSpan
    • appendNumberSpan

      public JDFNumberSpan appendNumberSpan(String strName)
      Append a number span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFNumberSpan the JDFNumberSpan
    • appendOptionSpan

      public JDFOptionSpan appendOptionSpan(String strName)
      Append an option (boolean) span
      Parameters:
      strName - name of the span element
      Returns:
      JDFOptionSpan the JDFOptionSpan
    • appendIntegerSpan

      public JDFIntegerSpan appendIntegerSpan(String strName)
      Append an integer span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFIntegerSpan the JDFIntegerSpan
    • appendNameSpan

      public JDFNameSpan appendNameSpan(String strName)
      Append a name span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFNameSpan the JDFNameSpan
    • appendEnumerationSpan

      public JDFEnumerationSpan appendEnumerationSpan(String strName)
      Append an Enumeration span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFEnumerationSpan the JDFEnumerationSpan
    • appendStringSpan

      public JDFStringSpan appendStringSpan(String strName)
      Append a string span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFStringSpan the JDFStringSpan
    • appendDurationSpan

      public JDFDurationSpan appendDurationSpan(String strName)
      Append a duration span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFDurationSpan the JDFDurationSpan
    • appendTimeSpan

      public JDFTimeSpan appendTimeSpan(String strName)
      Append a time span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFTimeSpan the JDFTimeSpan
    • appendXYPairSpan

      public JDFXYPairSpan appendXYPairSpan(String strName)
      Append a XYPair span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFXYPairSpan the JDFXYPairSpan
    • appendShapeSpan

      public JDFShapeSpan appendShapeSpan(String strName)
      Append a Shape span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      Returns:
      JDFShapeSpan the JDFShapeSpan
    • getSpan

      public JDFSpanBase getSpan(String strName, JDFSpanBase.EnumDataType nType)
      get a span
      Parameters:
      strName - name of the span element
      nType - datatype of the new span
      Returns:
      JDFSpanBase the JDFSpanBase
    • appendSpan

      public JDFSpanBase appendSpan(String strName, JDFSpanBase.EnumDataType nType)
      Append a span if it does not yet exist, else return the existing element
      Parameters:
      strName - name of the span element
      nType - datatype of the new span
      Returns:
      JDFSpanBase the JDFSpanBase