Class XeLifetime

  • All Implemented Interfaces:
    XeSource

    public final class XeLifetime
    extends XeWrap
    Xembly source to create "lifetime" attribute at the root, in milliseconds.

    Add this Xembly source to your page like this:

     new RsXembly(
       new XeStylesheet("/xsl/home.xsl"),
       new XeLifetime()
     )

    And expect this attribute in the XML:

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

    The class is immutable and thread-safe.

    Since:
    1.7
    • Constructor Detail

      • XeLifetime

        public XeLifetime()
        Ctor.
      • XeLifetime

        public XeLifetime​(CharSequence elm)
        Ctor.
        Parameters:
        elm - Element name