org.openspml.v2.profiles.dsml
Class DSMLUnmarshaller

java.lang.Object
  extended byorg.openspml.v2.profiles.dsml.DSMLUnmarshaller
All Implemented Interfaces:
ObjectFactory.OCEUnmarshaller

public class DSMLUnmarshaller
extends java.lang.Object
implements ObjectFactory.OCEUnmarshaller

Capture all the "public" knowledge of parsers, etc... Integrate the classes in the system.

NOTE: If we wanted to compartmentalize parser support, we could use yet another dispatch (instead of instanceof) in the visit methods to various XmlRep unmarshallers.


Nested Class Summary
protected static interface DSMLUnmarshaller.Parseable
          Make it clear that you are top-level by implementing this interface and OpenContentElement
 
Field Summary
protected static java.lang.String DSML_CORE_URI
           
 
Constructor Summary
DSMLUnmarshaller()
           
 
Method Summary
protected  org.openspml.v2.profiles.dsml.FilterItem getFilterItem(java.lang.Object xmlObj)
           
 OpenContentElement unmarshall(java.lang.Object obj)
          The ObjectFactory calls this to determine if the obj is something we can handle and create.
protected  Attr visitAttr(Attr item, java.lang.Object xmlObj)
           
protected  AttributeDescriptions visitAttributeDescriptions(AttributeDescriptions item, java.lang.Object xmlObj)
           
protected  org.openspml.v2.profiles.dsml.AttributeValueAssertion visitAttributeValueAssertion(org.openspml.v2.profiles.dsml.AttributeValueAssertion ava, java.lang.Object xmlObj)
           
protected  org.openspml.v2.profiles.dsml.BasicFilter visitBasicFilter(org.openspml.v2.profiles.dsml.BasicFilter item, java.lang.Object xmlObj)
           
 void visitExtensibleMatch(ExtensibleMatch em, java.lang.Object xmlObj)
           
protected  DSMLUnmarshaller.Parseable visitFilterSet(org.openspml.v2.profiles.dsml.FilterSet item, java.lang.Object xmlObj)
           
protected  Modification visitModification(Modification item, java.lang.Object xmlObj)
           
protected  org.openspml.v2.profiles.dsml.NamedFilterItem visitNamedFilterItem(org.openspml.v2.profiles.dsml.NamedFilterItem nfi, java.lang.Object xmlObj)
           
protected  Not visitNot(Not not, java.lang.Object xmlObj)
           
protected  DSMLUnmarshaller.Parseable visitSubstrings(Substrings substrings, java.lang.Object xmlObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DSML_CORE_URI

protected static final java.lang.String DSML_CORE_URI
See Also:
Constant Field Values
Constructor Detail

DSMLUnmarshaller

public DSMLUnmarshaller()
Method Detail

visitAttr

protected Attr visitAttr(Attr item,
                         java.lang.Object xmlObj)
                  throws DSMLProfileException
Throws:
DSMLProfileException

visitModification

protected Modification visitModification(Modification item,
                                         java.lang.Object xmlObj)
                                  throws DSMLProfileException
Throws:
DSMLProfileException

getFilterItem

protected org.openspml.v2.profiles.dsml.FilterItem getFilterItem(java.lang.Object xmlObj)
                                                          throws DSMLProfileException
Throws:
DSMLProfileException

visitAttributeDescriptions

protected AttributeDescriptions visitAttributeDescriptions(AttributeDescriptions item,
                                                           java.lang.Object xmlObj)
                                                    throws DSMLProfileException
Throws:
DSMLProfileException

unmarshall

public OpenContentElement unmarshall(java.lang.Object obj)
                              throws DSMLProfileException
The ObjectFactory calls this to determine if the obj is something we can handle and create. These are the top-level classes only.

Specified by:
unmarshall in interface ObjectFactory.OCEUnmarshaller
Parameters:
obj -
Returns:
an object as OpenContentElement, if we recognize the obj
Throws:
DSMLProfileException

visitFilterSet

protected DSMLUnmarshaller.Parseable visitFilterSet(org.openspml.v2.profiles.dsml.FilterSet item,
                                                    java.lang.Object xmlObj)
                                             throws DSMLProfileException
Throws:
DSMLProfileException

visitBasicFilter

protected org.openspml.v2.profiles.dsml.BasicFilter visitBasicFilter(org.openspml.v2.profiles.dsml.BasicFilter item,
                                                                     java.lang.Object xmlObj)
                                                              throws DSMLProfileException
Throws:
DSMLProfileException

visitNot

protected Not visitNot(Not not,
                       java.lang.Object xmlObj)
                throws DSMLProfileException
Throws:
DSMLProfileException

visitNamedFilterItem

protected org.openspml.v2.profiles.dsml.NamedFilterItem visitNamedFilterItem(org.openspml.v2.profiles.dsml.NamedFilterItem nfi,
                                                                             java.lang.Object xmlObj)
                                                                      throws DSMLProfileException
Throws:
DSMLProfileException

visitAttributeValueAssertion

protected org.openspml.v2.profiles.dsml.AttributeValueAssertion visitAttributeValueAssertion(org.openspml.v2.profiles.dsml.AttributeValueAssertion ava,
                                                                                             java.lang.Object xmlObj)
                                                                                      throws DSMLProfileException
Throws:
DSMLProfileException

visitSubstrings

protected DSMLUnmarshaller.Parseable visitSubstrings(Substrings substrings,
                                                     java.lang.Object xmlObj)
                                              throws DSMLProfileException
Throws:
DSMLProfileException

visitExtensibleMatch

public void visitExtensibleMatch(ExtensibleMatch em,
                                 java.lang.Object xmlObj)
                          throws DSMLProfileException
Throws:
DSMLProfileException


Copyright © Sun Microsystems, Inc. All Rights Reserved.