public abstract class AbstractPrintTalk extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_JOBIDREF |
protected org.apache.commons.logging.Log |
log |
protected org.cip4.jdflib.core.KElement |
theElement |
Constructor and Description |
---|
AbstractPrintTalk() |
AbstractPrintTalk(org.cip4.jdflib.core.KElement theElement) |
Modifier and Type | Method and Description |
---|---|
org.cip4.jdflib.core.KElement |
appendElement(String elementName)
append an element
|
org.cip4.jdflib.core.KElement |
appendXJDFElement(String nodeName)
get an element, create it if it does not yet exist
|
void |
cleanUp()
generic cleanup routine
|
boolean |
equals(Object arg0)
we are equal if the underlying element is equal
|
String |
getAttribute(String strLocalName)
get an attribute from this, null if not there
|
String |
getAttribute(String strLocalName,
String def)
get an attribute from this, def if not there
|
org.cip4.jdflib.datatypes.JDFAttributeMap |
getAttributeMap() |
boolean |
getBoolAttribute(String attrib,
boolean def) |
String |
getComment() |
org.cip4.jdflib.core.KElement |
getCreateElement(String nodeName)
get an element, create it if it does not yet exist
|
org.cip4.jdflib.core.KElement |
getCreateElement(String nodeName,
int n)
get an element, create it if it does not yet exist
|
org.cip4.jdflib.core.KElement |
getCreateXJDFElement(String nodeName,
int n)
get an element, create it if it does not yet exist
|
org.cip4.jdflib.core.KElement |
getCreateXPathElement(String path) |
String |
getDescriptiveName() |
org.cip4.jdflib.core.KElement |
getElement(String nodeName)
get an element, create it if it does not yet exist
|
org.cip4.jdflib.core.KElement |
getElement(String nodeName,
int nSkip)
get an element, create it if it does not yet exist
|
org.cip4.jdflib.core.VElement |
getElements(String nodeName)
get all elements,
|
String |
getLocalName() |
String |
getNodeName() |
PrintTalk |
getPrintTalk()
get the root element
|
double |
getRealAttribute(String attrib,
double def) |
org.cip4.jdflib.core.KElement |
getRoot()
get the root element that represints myself
|
String |
getTElem(String elemName)
get the contents of a text element
|
org.cip4.jdflib.core.KElement |
getXJDFElement(String nodeName,
int n)
get an element, create it if it does not yet exist
|
String |
getXPathAttribute(String path,
String def) |
org.cip4.jdflib.core.KElement |
getXPathElement(String path) |
int |
hashCode()
we are equal if the underlying element is equal
|
void |
init()
initialize
|
int |
numElements(String nodeName)
get number of all elements,
|
void |
setAttribute(String key,
boolean b) |
void |
setAttribute(String key,
double value) |
void |
setAttribute(String key,
int value) |
void |
setAttribute(String key,
String value)
set an attribute in this
|
void |
setComment(String comment) |
void |
setDescriptiveName(String description) |
protected void |
setRoot(org.cip4.jdflib.core.KElement root) |
void |
setTElem(String elemName,
String s)
Create text element and set its value
|
void |
setVAttribute(String key,
org.cip4.jdflib.core.VString value)
set an attribute in this
|
void |
setXPathAttribute(String path,
String value) |
void |
setXPathValue(String path,
String value) |
String |
toString() |
String |
toXML() |
protected org.cip4.jdflib.core.KElement theElement
protected final org.apache.commons.logging.Log log
public static final String ATTR_JOBIDREF
public AbstractPrintTalk(org.cip4.jdflib.core.KElement theElement)
theElement
- public AbstractPrintTalk()
protected void setRoot(org.cip4.jdflib.core.KElement root)
root
- public org.cip4.jdflib.core.KElement getRoot()
public PrintTalk getPrintTalk()
public void init()
public String toString()
toString
in class Object
Object.toString()
public void setDescriptiveName(String description)
description
- public String getDescriptiveName()
public String getComment()
public void setComment(String comment)
comment
- public String getAttribute(String strLocalName)
strLocalName
- public String getAttribute(String strLocalName, String def)
strLocalName
- def
- public void setAttribute(String key, String value)
key
- value
- public void setVAttribute(String key, org.cip4.jdflib.core.VString value)
key
- value
- public org.cip4.jdflib.core.KElement appendElement(String elementName)
elementName
- public void cleanUp()
public org.cip4.jdflib.core.KElement getCreateElement(String nodeName)
nodeName
- public org.cip4.jdflib.core.KElement getCreateElement(String nodeName, int n)
nodeName
- n
- index of the elementpublic org.cip4.jdflib.core.KElement getCreateXJDFElement(String nodeName, int n)
nodeName
- n
- index of the elementpublic org.cip4.jdflib.core.KElement getXJDFElement(String nodeName, int n)
nodeName
- n
- index of the elementpublic org.cip4.jdflib.core.KElement appendXJDFElement(String nodeName)
nodeName
- n
- index of the elementpublic org.cip4.jdflib.core.KElement getElement(String nodeName)
nodeName
- public org.cip4.jdflib.core.KElement getElement(String nodeName, int nSkip)
nodeName
- nSkip
- public org.cip4.jdflib.core.VElement getElements(String nodeName)
nodeName
- public int numElements(String nodeName)
nodeName
- public void setXPathAttribute(String path, String value)
path
- value
- public String getXPathAttribute(String path, String def)
path
- def
- public org.cip4.jdflib.core.KElement getXPathElement(String path)
path
- public org.cip4.jdflib.core.KElement getCreateXPathElement(String path)
path
- public String getTElem(String elemName)
elemName
- public void setTElem(String elemName, String s)
elemName
- s
- public boolean equals(Object arg0)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void setAttribute(String key, int value)
key
- value
- public void setAttribute(String key, double value)
key
- value
- public void setAttribute(String key, boolean b)
key
- b
- public org.cip4.jdflib.datatypes.JDFAttributeMap getAttributeMap()
public boolean getBoolAttribute(String attrib, boolean def)
attrib
- def
- public double getRealAttribute(String attrib, double def)
attrib
- def
- public String getLocalName()
public String getNodeName()
public String toXML()
Copyright © 2019. All rights reserved.