org.apache.muse.ws.dm.muws.impl
Class MatchCorrelation
java.lang.Object
org.apache.muse.ws.dm.muws.impl.MatchCorrelation
- All Implemented Interfaces:
- XmlSerializable, Correlation, Match
public class MatchCorrelation
- extends Object
- implements Correlation, Match
MatchCorrelation represents correlation expressions formatted with the
MUWS Simple Property Boolean Match (PBM) schema. PBM allows the user to
declare fairly complex conditionals for evaluating two resources for
equality. Each MatchCorrelation will contain one or more instances of
Match.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchCorrelation
public MatchCorrelation(WsResource resource)
- This is a convenience constructor that calls this(Resource, boolean)
with a 'false' second parameter.
- See Also:
MatchCorrelation(WsResource, boolean)
MatchCorrelation
public MatchCorrelation(WsResource resource,
boolean negativeAssertion)
- Parameters:
resource
- The resource that is defining the CorrelatableProperties
capability and, thus, this correlation.negativeAssertion
- True if this correlation guarantees that a false match equates
to two resources being different.
MatchCorrelation
public MatchCorrelation(WsResource resource,
Element xml)
- Parameters:
resource
- The resource that is defining the CorrelatableProperties
capability and, thus, this correlation.xml
- The DOM Element representing an instance of CorrelatableProperties
that uses the PBM dialect (is defined by Matches).
addMatch
public void addMatch(Match child)
- Specified by:
addMatch
in interface Match
getDialect
public String getDialect()
- Specified by:
getDialect
in interface Correlation
getMatches
public List getMatches()
- Specified by:
getMatches
in interface Match
getWsResource
public WsResource getWsResource()
- Specified by:
getWsResource
in interface Correlation
- Specified by:
getWsResource
in interface Match
hasNegativeAssertion
public boolean hasNegativeAssertion()
- Specified by:
hasNegativeAssertion
in interface Correlation
matches
public boolean matches(org.apache.muse.ws.addressing.EndpointReference epr)
throws org.apache.muse.ws.addressing.soap.SoapFault
- Specified by:
matches
in interface Correlation
- Specified by:
matches
in interface Match
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
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.