org.openspml.v2.profiles.dsml
Class DSMLUnmarshaller
java.lang.Object
org.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 |
|
Method Summary |
protected ApproxMatch |
createApproxMatch()
Extend this class and override this to replace the
implementation of the ApproxMatch (which has an
unimplemented matches() method.) |
protected ExtensibleMatch |
createExtensibleMatch()
Extend this class and override this to replace the
implementation of the ExtensibleMatch (which has an
unimplemented matches() method.) |
protected 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 AttributeDescription |
visitAttributeDescription(AttributeDescription 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)
|
protected DSMLAttr |
visitDSMLAttr(DSMLAttr item,
java.lang.Object xmlObj)
|
protected DSMLModification |
visitDSMLModification(DSMLModification item,
java.lang.Object xmlObj)
|
void |
visitExtensibleMatch(ExtensibleMatch em,
java.lang.Object xmlObj)
|
protected DSMLUnmarshaller.Parseable |
visitFilterSet(FilterSet 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 |
DSML_CORE_URI
protected static final java.lang.String DSML_CORE_URI
- See Also:
- Constant Field Values
DSMLUnmarshaller
public DSMLUnmarshaller()
createExtensibleMatch
protected ExtensibleMatch createExtensibleMatch()
- Extend this class and override this to replace the
implementation of the ExtensibleMatch (which has an
unimplemented matches() method.)
- Returns:
- a new empty ExtensibleMatch
createApproxMatch
protected ApproxMatch createApproxMatch()
- Extend this class and override this to replace the
implementation of the ApproxMatch (which has an
unimplemented matches() method.)
- Returns:
- a new empty ApproxMatch
visitDSMLAttr
protected DSMLAttr visitDSMLAttr(DSMLAttr item,
java.lang.Object xmlObj)
throws DSMLProfileException
- Throws:
DSMLProfileException
visitDSMLModification
protected DSMLModification visitDSMLModification(DSMLModification item,
java.lang.Object xmlObj)
throws DSMLProfileException
- Throws:
DSMLProfileException
getFilterItem
protected FilterItem getFilterItem(java.lang.Object xmlObj)
throws DSMLProfileException
- Throws:
DSMLProfileException
visitAttributeDescriptions
protected AttributeDescriptions visitAttributeDescriptions(AttributeDescriptions item,
java.lang.Object xmlObj)
throws DSMLProfileException
- Throws:
DSMLProfileException
visitAttributeDescription
protected AttributeDescription visitAttributeDescription(AttributeDescription 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(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.