|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.serial.Serializer
public class Serializer
Front-end for translating XML component/style to Style
instances.
Method Summary | |
---|---|
static Serializer |
forClassLoader(java.lang.ClassLoader classLoader)
Creates or retrieves a Serializer . |
java.lang.Class |
getClass(java.lang.String type)
Returns a Class based on an XML type value. |
Style |
loadStyle(SerialContext serialContext,
java.lang.String componentType,
org.w3c.dom.Element containerElement)
Creates a Style object based on an XML property container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Serializer forClassLoader(java.lang.ClassLoader classLoader)
Serializer
.
classLoader
- the ClassLoader
to use for
dynamically loading peer classes
Serializer
public java.lang.Class getClass(java.lang.String type) throws java.lang.ClassNotFoundException
Class
based on an XML type value.
The provided type may be a java.lang shorthand, e.g., "s" for string, "b" for boolean.
If the provided type is not fully qualified, a standard Echo property type is assumed, e.g.
"Extent" will return the nextapp.echo.app.Extent class.
If the property type is fully qualified, it will simply be loaded by the classloader.
type
- the XML type value
Class
java.lang.ClassNotFoundException
- in the event that no class exists with the specified typepublic Style loadStyle(SerialContext serialContext, java.lang.String componentType, org.w3c.dom.Element containerElement) throws SerialException
Style
object based on an XML property container.
serialContext
- the SerialContext
providing contextual information about the serializationcomponentType
- the component type for which the Style
will be usedcontainerElement
- the DOM element containing the style properties
Style
SerialException
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |