Class 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 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.
    • Constructor Detail

      • Add

        public Add()
    • 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 set method 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 String Element

        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
      • 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
      • 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 is String
        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 is String
        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 is String
        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 is String
        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