Class Marker.MarkerPropertyList

java.lang.Object
org.apache.fop.fo.PropertyList
org.apache.fop.fo.flow.Marker.MarkerPropertyList
All Implemented Interfaces:
Attributes
Enclosing class:
Marker

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

    • MarkerPropertyList

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

    • addAttributesToList

      public void addAttributesToList(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 Attributes
    • getURI

      public String getURI(int index)
      Specified by:
      getURI in interface Attributes
    • getLocalName

      public String getLocalName(int index)
      Specified by:
      getLocalName in interface Attributes
    • getQName

      public String getQName(int index)
      Specified by:
      getQName in interface Attributes
    • getType

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

      public String getValue(int index)
      Specified by:
      getValue in interface Attributes
    • getIndex

      public int getIndex(String name, String namespace)
      Specified by:
      getIndex in interface Attributes
    • getIndex

      public int getIndex(String qname)
      Specified by:
      getIndex in interface Attributes
    • getType

      public String getType(String name, String namespace)
      Default implementation; not used
      Specified by:
      getType in interface Attributes
      Parameters:
      name - a type name
      namespace - a type namespace
      Returns:
      type string
    • getType

      public String getType(String qname)
      Default implementation; not used
      Specified by:
      getType in interface Attributes
      Parameters:
      qname - a type name
      Returns:
      type string
    • getValue

      public String getValue(String name, String namespace)
      Specified by:
      getValue in interface Attributes
    • getValue

      public String getValue(String qname)
      Specified by:
      getValue in interface Attributes