Package org.takes.rs.xe
Class XeMillis
- java.lang.Object
-
- org.takes.rs.xe.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 Summary
Constructors Constructor Description XeMillis()
Ctor.XeMillis(boolean fin)
Ctor.XeMillis(CharSequence elm, boolean fin)
Ctor.
-
-
-
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 namefin
- Is it the finish?
-
-