org.openspml.v2.profiles.dsml
Class ApproxMatch
java.lang.Object
org.openspml.v2.profiles.dsml.FilterItem
org.openspml.v2.profiles.dsml.NamedFilterItem
org.openspml.v2.profiles.dsml.AttributeValueAssertion
org.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"/>
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
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.