| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ws4d.java.types.CustomizeMDataHandler
public class CustomizeMDataHandler
This class implement a generic handler for user added customize metadata
| Method Summary | |
|---|---|
static CustomizeMDataHandler | 
getInstance()
Give a static instance of the CustomizeMDataHandler  | 
 java.lang.Object | 
handleElement(QName elementName,
              ElementParser parser)
Processes the content (both child elements and attributes) of the element with the specified elementName and returns its
 representation as a Java object. | 
 void | 
serializeElement(XmlSerializer serializer,
                 QName qname,
                 java.lang.Object data)
Method to serialize the UnknownElement  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public java.lang.Object handleElement(QName elementName,
                                      ElementParser parser)
                               throws org.xmlpull.v1.XmlPullParserException,
                                      java.io.IOException
ElementHandlerelementName and returns its
 representation as a Java object. The element content can be obtained
 successively from the provided parser. It is guaranteed that
 this parser will be always namespace-aware. Note that the parser's
 current position is already at the start position of the current element,
 that is, the following assumptions hold immediately after entering this
 method:
 
 
 parser.getEventType() == XmlPullParser.START_TAG
 
 
 parser.getName() == elementName.getLocalPart()
 
 parser.getNamespace() == elementName.getNamespace()
 
handleElement in interface ElementHandlerelementName - the qualified name of the element to processparser - the parser to obtain element data from
org.xmlpull.v1.XmlPullParserException - if an error during processing of the
             element content occurs
java.io.IOException - if an error during reading the element source occursElementHandler.handleElement(QName, ElementParser)
public void serializeElement(XmlSerializer serializer,
                             QName qname,
                             java.lang.Object data)
                      throws java.lang.IllegalArgumentException,
                             WS4DIllegalStateException,
                             java.io.IOException
ElementHandler
serializeElement in interface ElementHandlerserializer - ,the Serializer which is used to serialize the
            UnknownElementqname - ,the qualified name of the UnknownElement to processdata - ,the value of the UnknownElement
java.lang.IllegalArgumentException
WS4DIllegalStateException
java.io.IOExceptionElementHandler.serializeElement(XmlSerializer, QName, Object)public static CustomizeMDataHandler getInstance()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||