org.apache.muse.ws.dm.muws.impl
Class ComplexMatch
java.lang.Object
org.apache.muse.ws.dm.muws.impl.ComplexMatch
- All Implemented Interfaces:
- XmlSerializable, Match
- Direct Known Subclasses:
- AllMatch, AnyMatch
public abstract class ComplexMatch
- extends Object
- implements Match
ComplexMatch is an abstract class for any pbm:Match that supports
subexpressions (sub-Matches). It provides all of the collection operations
needed to store and evaluate the subexpressions but provides no default
implementation for matches(Resource). Concrete subclasses must define how
the Match's subexpressions are combined to evaluate another resource.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.muse.ws.dm.muws.Match |
matches |
ComplexMatch
public ComplexMatch(WsResource resource)
- Parameters:
resource
- The resource that is defining the CorrelatableProperties
capability and thus, this correlation expression.
ComplexMatch
public ComplexMatch(WsResource resource,
Element xml)
- Parameters:
resource
- The resource that is defining the CorrelatableProperties
capability and thus, this correlation expression.xml
- The DOM Element representing the simple pbm:Match.
addMatch
public void addMatch(Match child)
- Specified by:
addMatch
in interface Match
getMatches
public List getMatches()
- Specified by:
getMatches
in interface Match
getRootQName
protected abstract QName getRootQName()
- Returns:
- The name of the XML element that defines the concrete match.
getWsResource
public WsResource getWsResource()
- Specified by:
getWsResource
in interface Match
removeMatch
public void removeMatch(Match child)
- Specified by:
removeMatch
in interface Match
toXML
public Element toXML()
- Specified by:
toXML
in interface XmlSerializable
toXML
public Element toXML(Document doc)
- Specified by:
toXML
in interface XmlSerializable
Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.