Class StringReplace


  • public class StringReplace
    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>
             <group ref="{http://www.schematron-quickfix.com/validator/process}templateElements"/>
           </choice>
           <attGroup ref="{http://www.schematron-quickfix.com/validator/process}activityBase"/>
           <attribute name="regex" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="select" type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • regex

        protected String regex
        Regular expression. The expression can be specified by XPath expressions which are marked by curly brackets. After processing, the regular expression must meet the requirements 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">regex</icode>
         
        attribute 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="element">xsl:analyze-string</icode>
         
        element.
      • 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 nodes to be inserted.
      • 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

      • StringReplace

        public StringReplace()
    • 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.
      • getRegex

        public String getRegex()
        Regular expression. The expression can be specified by XPath expressions which are marked by curly brackets. After processing, the regular expression must meet the requirements 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">regex</icode>
         
        attribute 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="element">xsl:analyze-string</icode>
         
        element.
        Returns:
        possible object is String
      • setRegex

        public void setRegex​(String value)
        Sets the value of the regex property.
        Parameters:
        value - allowed object is String
        See Also:
        getRegex()
      • 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 nodes to be inserted.
        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()
      • 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