Class SelectorType

  • All Implemented Interfaces:
    Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.ToString2

    public class SelectorType
    extends Object
    implements Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.ToString2
    XPath expression that points to a specific text value or attribute in an XML structure. The following rules SHALL apply: 1. {Path} must be a valid XPath expression, as defined in XPath [http://www.w3.org/TR/1999/REC-xpath-19991116]. 2. {Path} must conform to the following extended BNF: [1] Path ::= ( '/' Step )* '/' ( '@' Name | 'text()' ) [2] Step ::= Name ('[' Expr ']')* [3] Expr ::= '@' Name '=' ( Number | Literal | ConcatCall) | Number [4] Name ::= QName | NCName [5] Literal ::= '"' [^"]* '"' | "'" [^']* "'" [6] ConcatCall ::= concat '(' ( Literal ( ',' Literal )* )? ')' [7] Number ::= Digits ( '.' Digits? )? [8] Digits ::= [0-9]+ where - QName is defined in: http://www.w3.org/TR/REC-xml-names/#NT-QName - NCName is defined in: http://www.w3.org/TR/REC-xml-names/#NT-NCName Samples including allowed features: /ns:Foo[@FooAttr='sample']/Bar[21]/text() /Foo[@FooAttr="sample"]/ns:Bar/@BarAttr

    Java class for SelectorType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="SelectorType">
       <simpleContent>
         <extension base="<http://www.w3.org/2001/XMLSchema>string">
           <attribute name="Id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <anyAttribute processContents='skip' namespace='##other'/>
         </extension>
       </simpleContent>
     </complexType>
     
    • Constructor Detail

      • SelectorType

        public SelectorType()
    • Method Detail

      • getValue

        public String getValue()
        Ruft den Wert der value-Eigenschaft ab.
        Returns:
        possible object is String
      • setValue

        public void setValue​(String value)
        Legt den Wert der value-Eigenschaft fest.
        Parameters:
        value - allowed object is String
      • getId

        public String getId()
        Ruft den Wert der id-Eigenschaft ab.
        Returns:
        possible object is String
      • setId

        public void setId​(String value)
        Legt den Wert der id-Eigenschaft fest.
        Parameters:
        value - allowed object is String
      • 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
      • copyTo

        public Object copyTo​(Object target)
        Specified by:
        copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo2
      • copyTo

        public Object copyTo​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                             Object target,
                             org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)
        Specified by:
        copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo2
      • createNewInstance

        public Object createNewInstance()
        Specified by:
        createNewInstance in interface org.jvnet.jaxb2_commons.lang.CopyTo2
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • append

        public StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                    StringBuilder buffer,
                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
      • appendFields

        public StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                          StringBuilder buffer,
                                          org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2