net.ranides.assira.xml
Class XMLHelper

java.lang.Object
  extended by net.ranides.assira.xml.XMLHelper

public final class XMLHelper
extends Object

Author:
ranides

Method Summary
static Document asDocument(Node node)
           
static Document asDocumentClone(Node node)
           
static Object asObject(String string)
          Deseralizacja obiektu przy użyciu XMLDecoder.
static String asString(Object obj)
          Konwertuje dowolny objekt Javy do XML używając java.beans.XMLEncoder
static Map<String,Node> mapNodes(Node group)
           
static Map<String,String> mapValues(Node group)
           
static Object reparse(Object obj)
          Serializuje i deserializuje obiekt w obrębie tego classLoadera.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asDocumentClone

public static Document asDocumentClone(Node node)

asDocument

public static Document asDocument(Node node)

mapNodes

public static Map<String,Node> mapNodes(Node group)

mapValues

public static Map<String,String> mapValues(Node group)

asString

public static String asString(Object obj)
Konwertuje dowolny objekt Javy do XML używając java.beans.XMLEncoder

Parameters:
obj -
Returns:

asObject

public static Object asObject(String string)
Deseralizacja obiektu przy użyciu XMLDecoder.

Parameters:
string -
Returns:

reparse

public static Object reparse(Object obj)
Serializuje i deserializuje obiekt w obrębie tego classLoadera.

Parameters:
obj -
Returns:


Copyright © 2013. All Rights Reserved.