|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.input.AbstractInputHandler
y.io.graphml.input.AbstractDataAcceptorInputHandler
y.io.graphml.input.ComplexDataAcceptorInputHandler
public class ComplexDataAcceptorInputHandler
An InputHandler implementation that uses an DataAcceptor
instance to associate the values with the keys.
This implementation can be provided a custom DeserializationHandler
to perform the deserialization.
![]() |
![]() |
| Constructor Summary | |
|---|---|
ComplexDataAcceptorInputHandler()
Initializes a new instance of the ComplexDataAcceptorInputHandler class
that uses the GraphMLParseContext for deserialization. |
|
ComplexDataAcceptorInputHandler(DeserializationHandler deserializer)
Initializes a new instance of the ComplexDataAcceptorInputHandler class
that uses the event handler for deserialization. |
|
| Methods inherited from class y.io.graphml.input.AbstractDataAcceptorInputHandler |
|---|
getDataAcceptor, setDataAcceptor, setValue |
| Methods inherited from class y.io.graphml.input.AbstractInputHandler |
|---|
applyDefault, getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, setDefaultExists, setDefaultValue, setParseDefaultValue, setPrecedence, setValidScopes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComplexDataAcceptorInputHandler()
ComplexDataAcceptorInputHandler class
that uses the GraphMLParseContext for deserialization.
Data is parsed through GraphMLParseContext.deserialize(GraphMLParseContext,org.w3c.dom.Node,Class) which
delegates to event listeners.
GraphMLParseContext.deserialize(GraphMLParseContext,org.w3c.dom.Node,Class)public ComplexDataAcceptorInputHandler(DeserializationHandler deserializer)
ComplexDataAcceptorInputHandler class
that uses the event handler for deserialization.
Data is parsed directly by the provided deserializer, thus bypassing deserialization
through GraphMLParseContext.deserialize(GraphMLParseContext,org.w3c.dom.Node,Class). Use this variant
to locally override deserialization behaviour for a certain data attribute.
deserializer - The deserialization callback that is used to parse the data.getDeserializer(),
setDeserializer(DeserializationHandler),
DeserializationHandler.onHandleDeserialization(DeserializationEvent)| Method Detail |
|---|
public boolean isUseParentElementForDeserialization()
getDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node) to return either the 'data''default'
element itself or its content.
The default value is false, meaning that getDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node) should return
the content of the 'data''default' node.
true iff the default element should parsed itself.getDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node),
setUseParentElementForDeserialization(boolean)public void setUseParentElementForDeserialization(boolean value)
getDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node) to return either the The default value is false, meaning that getDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node) should return
the content of the
value - a value that indicates whether to parse the default element or its contentgetDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node),
isUseParentElementForDeserialization()public DeserializationHandler getDeserializer()
setDeserializer(DeserializationHandler)public void setDeserializer(DeserializationHandler value)
value - The deserializer.getDeserializer()public Class getDeserializerTargetType()
DeserializationEvent.getTargetType()
property.
setDeserializerTargetType(Class)public void setDeserializerTargetType(Class value)
DeserializationEvent.getTargetType()
property.
value - The target type of the deserialization.getDeserializerTargetType()
protected Object parseDataCore(GraphMLParseContext context,
Node node)
throws GraphMLParseException
getDeserializer() or GraphMLParseContext.deserialize(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node, java.lang.Class)
parseDataCore in class AbstractInputHandlerGraphMLParseExceptioncontext - The context.node - The node that contains the data. This is either the GraphML isUseParentElementForDeserialization()
getDeserializationXmlNode(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node),
isUseParentElementForDeserialization()
protected Node getDeserializationXmlNode(GraphMLParseContext context,
Node node)
throws GraphMLParseException
getDeserializer() or GraphMLParseContext.deserialize(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node, java.lang.Class)
respectively, given the 'data' or 'default' element from the GraphML.
This method is called by parseDataCore(y.io.graphml.input.GraphMLParseContext, org.w3c.dom.Node) to determine the node to pass to the deserialization mechanism.
node iff isUseParentElementForDeserialization() is true
(i.e. the Node.getFirstChild() of the node.
GraphMLParseExceptioncontext - The context within which the node is parsed.node - The 'data' or 'default' node.
isUseParentElementForDeserialization()
|
© Copyright 2000-2010, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||