Package snap.view
Class ViewArchiver
java.lang.Object
snap.util.XMLArchiver
snap.view.ViewArchiver
This class handles Snap View archival.
-
Nested Class Summary
Nested classes/interfaces inherited from class snap.util.XMLArchiver
XMLArchiver.Archivable, XMLArchiver.Resource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAliases
(Map<String, Class> cmap) Adds aliases.Creates the class map.protected Class<?>
getClassForXML
(XMLElement anElement) Returns the class for a given element.Returns an image for given name/path.static Image
getImage
(XMLArchiver anArchiver, String aPath) Returns an image for given name/path.getViewForBytes
(byte[] theBytes) Returns a View for source.getViewForSource
(Object aSource) Returns a View for source.getViewForSourceAndOwner
(Object aSource, Object anOwner) Returns a View for source.static boolean
Returns whether to use real classes.static void
setUseRealClass
(boolean aFlag) Sets whether to use real classes.Methods inherited from class snap.util.XMLArchiver
addResource, copy, fromXML, fromXML, fromXML, fromXMLList, getClass, getClassMap, getOwner, getOwnerClass, getParent, getParent, getReference, getReference, getReference, getResource, getResource, getResources, getResources, getRootObject, getRootXML, getSourceURL, getVersion, indexOf, indexOf, isIgnoreCase, newInstance, popParent, pushParent, readFromXML, readFromXMLBytes, readFromXMLSource, readFromXMLString, setIgnoreCase, setOwner, setRootObject, setSourceURL, setVersion, toXML, toXML, writeToXML, writeToXMLBytes
-
Constructor Details
-
ViewArchiver
public ViewArchiver()Creates a new ViewArchiver.
-
-
Method Details
-
getViewForSource
Returns a View for source. -
getViewForSourceAndOwner
Returns a View for source. -
getViewForBytes
Returns a View for source. -
getClassForXML
Returns the class for a given element.- Overrides:
getClassForXML
in classXMLArchiver
-
createClassMap
Creates the class map.- Overrides:
createClassMap
in classXMLArchiver
-
addAliases
Adds aliases. -
getImage
Returns an image for given name/path. -
isUseRealClass
public static boolean isUseRealClass()Returns whether to use real classes. -
setUseRealClass
public static void setUseRealClass(boolean aFlag) Sets whether to use real classes. -
getImage
Returns an image for given name/path.
-