|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.apl.jxc.mapper.AbstractXMLMapping
uk.apl.jxc.mapper.XMLDefault
public class XMLDefault
AbstractXMLMapping sub-class that causes the XMLMapper to output the defaultValue argument into the leaf element or attribute specified by the targetPath parameter.
Constructor Summary | |
---|---|
XMLDefault(java.lang.String targetPath,
java.lang.String condition,
java.lang.String defaultValue)
Constructs a new AbstractXMLMapping |
Method Summary | |
---|---|
boolean |
isDefault()
When true the value of sourcePath will be defaulted as a literal value into the target instead of being used to select from the source schema. |
Methods inherited from class uk.apl.jxc.mapper.AbstractXMLMapping |
---|
conditionsEqual, create, getCondition, getDefaultValue, getFunction, getSelectString, getSourcePath, getTargetElementName, getTargetPath, isAttribute, isConditional, isEmpty, isRootElement, isTargetAttributeOrLeaf, targetsEqual |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLDefault(java.lang.String targetPath, java.lang.String condition, java.lang.String defaultValue)
targetPath
- path to and including the element or attribute in the
target schemacondition
- a boolean XPath condition for the mapping, the mapping
will only be performed if the condition evaluates to truedefaultValue
- a literal value to be output into the target document
InvalidMappingException
- if an attempt is made to construct an
XMLDefault with a null or empty targetPath or a null defaultValueAbstractXMLMapping.create(java.lang.String, java.lang.String, java.lang.String, uk.apl.jxc.XSLTFunction, java.lang.String)
Method Detail |
---|
public boolean isDefault()
isDefault
in class AbstractXMLMapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |