Class XeMillis

  • All Implemented Interfaces:
    XeSource

    public final class XeMillis
    extends Object
    implements XeSource
    Xembly source to create "millis" element at the root.

    Add this Xembly source to your page like this:

     new RsXembly(
       new XeStylesheet("/xsl/home.xsl"),
       new XeAppend(
         "page",
         new XeMillis(),
         // some other Xembly elements
         new XeMillis(true)
       )
     )

    And expect this attribute in the XML:

    <?xml version="1.0"?>
     <?xml-stylesheet href="/xsl/home.xsl" type="text/xsl"?>
     <page>
     <millis>3.675</millis>
     </page>
     

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • XeMillis

        public XeMillis()
        Ctor.
        Since:
        1.4
      • XeMillis

        public XeMillis​(boolean fin)
        Ctor.
        Parameters:
        fin - Is it the finish?
      • XeMillis

        public XeMillis​(CharSequence elm,
                        boolean fin)
        Ctor.
        Parameters:
        elm - Element name
        fin - Is it the finish?
    • Method Detail

      • toXembly

        public Iterable<org.xembly.Directive> toXembly()
        Description copied from interface: XeSource
        Get Xembly directives.
        Specified by:
        toXembly in interface XeSource
        Returns:
        Directives