org.openspml.v2.profiles.dsml
Class ApproxMatch

java.lang.Object
  extended byorg.openspml.v2.profiles.dsml.FilterItem
      extended byorg.openspml.v2.profiles.dsml.NamedFilterItem
          extended byorg.openspml.v2.profiles.dsml.AttributeValueAssertion
              extended byorg.openspml.v2.profiles.dsml.ApproxMatch
All Implemented Interfaces:
DSMLUnmarshaller.Parseable

public class ApproxMatch
extends org.openspml.v2.profiles.dsml.AttributeValueAssertion

From the DSML spec...

 <xsd:element name="approxMatch" type="AttributeValueAssertion"/> 


Constructor Summary
ApproxMatch()
           
ApproxMatch(java.lang.String name, DSMLValue value)
           
ApproxMatch(java.lang.String name, java.lang.String value)
           
 
Method Summary
 void accept(FilterItemVisitor visitor)
           
protected  void addSubclassAttributes(XmlBuffer buffer)
           
protected  void addSubclassElements(XmlBuffer buffer)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 DSMLValue getValue()
           
 int hashCode()
           
 boolean matches(java.util.Map attrs)
          Servers will likely provide their own implementation of this - See the DSMLProfileRegistar and DSMLUnmarshaller for details on what to extend and override.
 void parseXml(DSMLUnmarshaller um, java.lang.Object e)
           
 void setName(java.lang.String name)
           
 void setValue(DSMLValue value)
           
protected  void toXML(java.lang.String s, XmlBuffer buffer)
           
protected  void toXML(XmlBuffer buffer)
           
protected  boolean valueAssertion(java.lang.String thisValue, java.lang.String testValue)
           
 
Methods inherited from class org.openspml.v2.profiles.dsml.FilterItem
convertAttrsToMap, matches
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApproxMatch

public ApproxMatch()

ApproxMatch

public ApproxMatch(java.lang.String name,
                   java.lang.String value)
            throws DSMLProfileException

ApproxMatch

public ApproxMatch(java.lang.String name,
                   DSMLValue value)
            throws DSMLProfileException
Method Detail

toXML

protected void toXML(XmlBuffer buffer)
              throws DSMLProfileException
Specified by:
toXML in class FilterItem
Throws:
DSMLProfileException

matches

public boolean matches(java.util.Map attrs)
                throws DSMLProfileException
Servers will likely provide their own implementation of this - See the DSMLProfileRegistar and DSMLUnmarshaller for details on what to extend and override.

Parameters:
attrs -
Returns:
true if it matches.
Throws:
DSMLProfileException

accept

public void accept(FilterItemVisitor visitor)
            throws DSMLProfileException
Specified by:
accept in class FilterItem
Throws:
DSMLProfileException

addSubclassElements

protected void addSubclassElements(XmlBuffer buffer)
                            throws DSMLProfileException
Throws:
DSMLProfileException

parseXml

public void parseXml(DSMLUnmarshaller um,
                     java.lang.Object e)
              throws DSMLProfileException
Throws:
DSMLProfileException

getValue

public DSMLValue getValue()

setValue

public void setValue(DSMLValue value)

valueAssertion

protected boolean valueAssertion(java.lang.String thisValue,
                                 java.lang.String testValue)

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)
             throws DSMLProfileException
Throws:
DSMLProfileException

addSubclassAttributes

protected void addSubclassAttributes(XmlBuffer buffer)
                              throws DSMLProfileException
Throws:
DSMLProfileException

toXML

protected void toXML(java.lang.String s,
                     XmlBuffer buffer)
              throws DSMLProfileException
Throws:
DSMLProfileException


Copyright © Sun Microsystems, Inc. All Rights Reserved.