Class Add
- java.lang.Object
-
- network.oxalis.peppol.schematron.jaxb.quickfix.Add
-
public class Add extends Object
Java class for anonymous complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded" minOccurs="0"> <group ref="{http://www.schematron-quickfix.com/validator/process}templateElements"/> </choice> <attGroup ref="{http://www.schematron-quickfix.com/validator/process}activityManipulate"/> <attribute name="position" type="{http://www.schematron-quickfix.com/validator/process}positionType" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Object>contentprotected StringmatchBy default the anchor node is the context node of the related Schematron rule.protected NodeTypeTypenodeTypeIf theprotected PositionTypepositionIf the value of theprotected StringselectThere is no default value.protected StringtargetPrefixes must be attached to a namespace in the current context of the Schematron schema.protected StringuseWhenXPath expression.
-
Constructor Summary
Constructors Constructor Description Add()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>getContent()Gets the value of the content property.StringgetMatch()By default the anchor node is the context node of the related Schematron rule.NodeTypeTypegetNodeType()If theMap<QName,String>getOtherAttributes()Gets a map that contains attributes that aren't bound to any typed property on this class.PositionTypegetPosition()If the value of theStringgetSelect()There is no default value.StringgetTarget()Prefixes must be attached to a namespace in the current context of the Schematron schema.StringgetUseWhen()XPath expression.voidsetMatch(String value)Sets the value of the match property.voidsetNodeType(NodeTypeType value)Sets the value of the nodeType property.voidsetPosition(PositionType value)Sets the value of the position property.voidsetSelect(String value)Sets the value of the select property.voidsetTarget(String value)Sets the value of the target property.voidsetUseWhen(String value)Sets the value of the useWhen property.
-
-
-
Field Detail
-
position
protected PositionType position
If the value of the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">node-type</icode>
attribute is<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attributeValue">attribute</icode>
, the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">position</icode>
attribute should not be set, because the node to be added will always be inserted as attribute. Otherwise the default value is<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attributeValue">first-child</icode>
.
-
nodeType
protected NodeTypeType nodeType
If the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">node-type</icode>
value is missing, the activity element should not have a<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">target</icode>
attribute. In this case the nodes to be added will be defined by the activity elements content or<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">select</icode>
attribute.
-
select
protected String select
There is no default value. If the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">select</icode>
attribute is not set, the content of the activity element defines the content of the nodes to be added.
-
target
protected String target
Prefixes must be attached to a namespace in the current context of the Schematron schema. Names without prefixes will be attached to the namespace declared by the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="element">sqf:default-namespace</icode>
element or to the null namespace.
-
match
protected String match
By default the anchor node is the context node of the related Schematron rule.
-
useWhen
protected String useWhen
XPath expression. It expects as return value an xs:boolean.
-
-
Method Detail
-
getContent
public List<Object> getContent()
Gets the value of the content property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the content property.For example, to add a new item, do as follows:
getContent().add(newItem);
Objects of the following type(s) are allowed in the list
StringElement- Returns:
- The value of the content property.
-
getPosition
public PositionType getPosition()
If the value of the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">node-type</icode>
attribute is<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attributeValue">attribute</icode>
, the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">position</icode>
attribute should not be set, because the node to be added will always be inserted as attribute. Otherwise the default value is<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attributeValue">first-child</icode>
.- Returns:
- possible object is
PositionType
-
setPosition
public void setPosition(PositionType value)
Sets the value of the position property.- Parameters:
value- allowed object isPositionType- See Also:
getPosition()
-
getNodeType
public NodeTypeType getNodeType()
If the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">node-type</icode>
value is missing, the activity element should not have a<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">target</icode>
attribute. In this case the nodes to be added will be defined by the activity elements content or<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">select</icode>
attribute.- Returns:
- possible object is
NodeTypeType
-
setNodeType
public void setNodeType(NodeTypeType value)
Sets the value of the nodeType property.- Parameters:
value- allowed object isNodeTypeType- See Also:
getNodeType()
-
getSelect
public String getSelect()
There is no default value. If the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">select</icode>
attribute is not set, the content of the activity element defines the content of the nodes to be added.- Returns:
- possible object is
String
-
setSelect
public void setSelect(String value)
Sets the value of the select property.- Parameters:
value- allowed object isString- See Also:
getSelect()
-
getTarget
public String getTarget()
Prefixes must be attached to a namespace in the current context of the Schematron schema. Names without prefixes will be attached to the namespace declared by the<?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="element">sqf:default-namespace</icode>
element or to the null namespace.- Returns:
- possible object is
String
-
setTarget
public void setTarget(String value)
Sets the value of the target property.- Parameters:
value- allowed object isString- See Also:
getTarget()
-
getMatch
public String getMatch()
By default the anchor node is the context node of the related Schematron rule.- Returns:
- possible object is
String
-
setMatch
public void setMatch(String value)
Sets the value of the match property.- Parameters:
value- allowed object isString- See Also:
getMatch()
-
getUseWhen
public String getUseWhen()
XPath expression. It expects as return value an xs:boolean.- Returns:
- possible object is
String
-
setUseWhen
public void setUseWhen(String value)
Sets the value of the useWhen property.- Parameters:
value- allowed object isString- See Also:
getUseWhen()
-
getOtherAttributes
public Map<QName,String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
- Returns:
- always non-null
-
-