Class Marker.MarkerPropertyList

  • All Implemented Interfaces:
    org.xml.sax.Attributes
    Enclosing class:
    Marker

    protected class Marker.MarkerPropertyList
    extends PropertyList
    implements org.xml.sax.Attributes
    An implementation of PropertyList which only stores the explicitly specified properties/attributes as bundles of name-value-namespace strings
    • Constructor Detail

      • MarkerPropertyList

        public MarkerPropertyList​(FObj fobj,
                                  PropertyList parentPropertyList)
        Overriding default constructor
        Parameters:
        fobj - the FObj to attach
        parentPropertyList - ignored
    • Method Detail

      • addAttributesToList

        public void addAttributesToList​(org.xml.sax.Attributes attributes)
                                 throws ValidationException
        Override that doesn't convert the attributes to Property instances, but simply stores the attributes for later processing.

        Adds the attributes, passed in by the parser to the PropertyList.

        Note that certain attributes are given priority in terms of order of processing due to conversion dependencies, where the order is as follows:

        1. writing-mode
        2. column-number
        3. number-columns-spanned
        4. font
        5. font-size
        6. all others in order of appearance
        Overrides:
        addAttributesToList in class PropertyList
        Parameters:
        attributes - Collection of attributes passed to us from the parser.
        Throws:
        ValidationException - if there is an attribute that does not map to a property id (strict validation only)
      • putExplicit

        public void putExplicit​(int propId,
                                Property value)
        Null implementation; not used by this type of PropertyList.
        Specified by:
        putExplicit in class PropertyList
        Parameters:
        propId - the propert id
        value - the property value
      • getExplicit

        public Property getExplicit​(int propId)
        Null implementation; not used by this type of PropertyList.
        Specified by:
        getExplicit in class PropertyList
        Parameters:
        propId - the propert id
        Returns:
        the property id
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.xml.sax.Attributes
      • getURI

        public java.lang.String getURI​(int index)
        Specified by:
        getURI in interface org.xml.sax.Attributes
      • getLocalName

        public java.lang.String getLocalName​(int index)
        Specified by:
        getLocalName in interface org.xml.sax.Attributes
      • getQName

        public java.lang.String getQName​(int index)
        Specified by:
        getQName in interface org.xml.sax.Attributes
      • getType

        public java.lang.String getType​(int index)
        Default implementation; not used.
        Specified by:
        getType in interface org.xml.sax.Attributes
        Parameters:
        index - a type index
        Returns:
        type string
      • getValue

        public java.lang.String getValue​(int index)
        Specified by:
        getValue in interface org.xml.sax.Attributes
      • getIndex

        public int getIndex​(java.lang.String name,
                            java.lang.String namespace)
        Specified by:
        getIndex in interface org.xml.sax.Attributes
      • getIndex

        public int getIndex​(java.lang.String qname)
        Specified by:
        getIndex in interface org.xml.sax.Attributes
      • getType

        public java.lang.String getType​(java.lang.String name,
                                        java.lang.String namespace)
        Default implementation; not used
        Specified by:
        getType in interface org.xml.sax.Attributes
        Parameters:
        name - a type name
        namespace - a type namespace
        Returns:
        type string
      • getType

        public java.lang.String getType​(java.lang.String qname)
        Default implementation; not used
        Specified by:
        getType in interface org.xml.sax.Attributes
        Parameters:
        qname - a type name
        Returns:
        type string
      • getValue

        public java.lang.String getValue​(java.lang.String name,
                                         java.lang.String namespace)
        Specified by:
        getValue in interface org.xml.sax.Attributes
      • getValue

        public java.lang.String getValue​(java.lang.String qname)
        Specified by:
        getValue in interface org.xml.sax.Attributes