org.apache.muse.ws.dm.muws.impl
Class SimpleMatch

java.lang.Object
  extended by org.apache.muse.ws.dm.muws.impl.SimpleMatch
All Implemented Interfaces:
XmlSerializable, Match

public class SimpleMatch
extends Object
implements Match

SimpleMatch is the most concrete form of pbm:Match - it allows an evaluator to compare to resources based on a single property value. Instances of SimpleMatch cannot have subexpressions

Author:
Dan Jemiolo (danj)

Constructor Summary
SimpleMatch(WsResource resource, Element xml)
           
SimpleMatch(WsResource resource, QName propertyQName)
           
 
Method Summary
 void addMatch(Match child)
          This method always throws an UnsupportedOperationException, because simple PBMs can't have children.
 List getMatches()
           
 QName getPropertyQName()
           
 WsResource getWsResource()
           
 boolean matches(org.apache.muse.ws.addressing.EndpointReference epr)
           
 void removeMatch(Match child)
          This method always throws an UnsupportedOperationException, because simple PBMs can't have children.
 Element toXML()
           
 Element toXML(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMatch

public SimpleMatch(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.

SimpleMatch

public SimpleMatch(WsResource resource,
                   QName propertyQName)
Parameters:
resource - The resource that is defining the CorrelatableProperties capability and thus, this correlation expression.
propertyQName - The name of the property to compare between the two resources.
Method Detail

addMatch

public void addMatch(Match child)
This method always throws an UnsupportedOperationException, because simple PBMs can't have children.

Specified by:
addMatch in interface Match

getMatches

public List getMatches()
Specified by:
getMatches in interface Match

getPropertyQName

public QName getPropertyQName()
Returns:
The name of the property that is used during evaluation.

getWsResource

public WsResource getWsResource()
Specified by:
getWsResource in interface Match

matches

public boolean matches(org.apache.muse.ws.addressing.EndpointReference epr)
                throws org.apache.muse.ws.addressing.soap.SoapFault
Specified by:
matches in interface Match
Throws:
org.apache.muse.ws.addressing.soap.SoapFault

removeMatch

public void removeMatch(Match child)
This method always throws an UnsupportedOperationException, because simple PBMs can't have children.

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.