java.lang.Object
com.tectonica.jonix.common.JPU
JPU (Jonix Processing Utility) is an all-static internal utility class, assisting in run time processing of the DOM
elements. Shouldn't be accessed normally by users.
IMPORTANT: Beware editing! the auto-generated classes all rely heavily on the methods in this class
- Author:
- Zach Melamed
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends OnixElement<V>,
V extends OnixCodelist>
ListOfOnixCodelist<E,V> addToList
(ListOfOnixCodelist<E, V> in, E item) static <C extends OnixComposite>
ListOfOnixComposite<C>addToList
(ListOfOnixComposite<C> in, C item) static <C extends OnixComposite.OnixDataComposite<S>,
S extends JonixStruct>
ListOfOnixDataComposite<C,S> addToList
(ListOfOnixDataComposite<C, S> in, C item) static <C extends OnixComposite.OnixDataCompositeWithKey<S,
K>, S extends JonixKeyedStruct<K>, K extends Enum<K> & OnixCodelist>
ListOfOnixDataCompositeWithKey<C,S, K> addToList
(ListOfOnixDataCompositeWithKey<C, S, K> in, C item) static <E extends OnixElement<V>,
V>
ListOfOnixElement<E,V> addToList
(ListOfOnixElement<E, V> in, E item) static Double
static Double
deals with all sorts of extra-characters that may come along with a double, such as currency symbol, quotes, etc.static Integer
static Integer
converts if possible, but returns null if the string isn't an integerstatic <C extends OnixTag>
CemptyInstance
(Class<C> clazz) static <C extends OnixComposite>
ListOfOnixComposite<C>emptyListOfOnixComposite
(Class<C> clazz) static <C extends OnixComposite.OnixDataComposite<S>,
S extends JonixStruct>
ListOfOnixDataComposite<C,S> emptyListOfOnixDataComposite
(Class<C> clazz) static <C extends OnixComposite.OnixDataCompositeWithKey<S,
K>, S extends JonixKeyedStruct<K>, K extends Enum<K> & OnixCodelist>
ListOfOnixDataCompositeWithKey<C,S, K> emptyListOfOnixDataCompositeWithKey
(Class<C> clazz) static Element
firstElemChild
(Node node) static void
forElementsOf
(Node node, JPU.ElementListener listener) static String
getAttribute
(Element element, String name) static String
getChildXHTML
(Node node, boolean strip) static Double
getContentAsDouble
(Element element) static Integer
getContentAsInteger
(Element element) static String
getContentAsString
(Element element) static Element
nextElemChild
(Node node)
-
Constructor Details
-
JPU
public JPU()
-
-
Method Details
-
firstElemChild
-
nextElemChild
-
emptyInstance
-
forElementsOf
-
getAttribute
-
getContentAsString
-
getContentAsInteger
-
getContentAsDouble
-
getChildXHTML
-
addToList
public static <E extends OnixElement<V>,V> ListOfOnixElement<E,V> addToList(ListOfOnixElement<E, V> in, E item) -
addToList
public static <E extends OnixElement<V>,V extends OnixCodelist> ListOfOnixCodelist<E,V> addToList(ListOfOnixCodelist<E, V> in, E item) -
addToList
public static <C extends OnixComposite.OnixDataComposite<S>,S extends JonixStruct> ListOfOnixDataComposite<C,S> addToList(ListOfOnixDataComposite<C, S> in, C item) -
addToList
public static <C extends OnixComposite.OnixDataCompositeWithKey<S,K>, ListOfOnixDataCompositeWithKey<C,S extends JonixKeyedStruct<K>, K extends Enum<K> & OnixCodelist> S, addToListK> (ListOfOnixDataCompositeWithKey<C, S, K> in, C item) -
addToList
public static <C extends OnixComposite> ListOfOnixComposite<C> addToList(ListOfOnixComposite<C> in, C item) -
emptyListOfOnixDataComposite
public static <C extends OnixComposite.OnixDataComposite<S>,S extends JonixStruct> ListOfOnixDataComposite<C,S> emptyListOfOnixDataComposite(Class<C> clazz) -
emptyListOfOnixDataCompositeWithKey
public static <C extends OnixComposite.OnixDataCompositeWithKey<S,K>, ListOfOnixDataCompositeWithKey<C,S extends JonixKeyedStruct<K>, K extends Enum<K> & OnixCodelist> S, emptyListOfOnixDataCompositeWithKeyK> (Class<C> clazz) -
emptyListOfOnixComposite
public static <C extends OnixComposite> ListOfOnixComposite<C> emptyListOfOnixComposite(Class<C> clazz) -
convertStringToInteger
-
convertStringToIntegerSafe
converts if possible, but returns null if the string isn't an integer -
convertStringToDouble
-
convertStringToDoubleSafe
deals with all sorts of extra-characters that may come along with a double, such as currency symbol, quotes, etc.
-