public class Atom extends Pattern implements com.exalead.util.Checkable, java.io.Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_LITTERAL |
static java.lang.String |
DEFAULT_NORM |
java.lang.String |
field |
java.lang.String |
kind |
boolean |
litteral |
java.lang.String |
matchedUrl |
java.lang.String |
norm |
java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Atom.
|
Atom |
clone()
Creates and returns a deep copy of this Atom.
|
static Atom |
fromString(java.lang.String s)
String representation of this Atom.
|
java.lang.String |
getField()
the field on which the pattern is applied
A field may be the whole url or a part of it (url, scheme, host, port, path, query) |
java.lang.String |
getKind()
specify the semantics of the attribute value
- "length": specify the length of a field ([:10], [11:12], [30:]) - "exact", "prefix", "suffix", "inside": specify a regexp and its anchoring |
java.lang.String |
getMatchedUrl()
If not empty, this rule applies on the url provided with the name matchedUrl,
instead of the main url. |
java.lang.String |
getNorm()
Specify the normalization level (default is case insentive match)
values: norm, lower or none |
java.lang.String |
getValue()
value (regexp)
|
boolean |
isLitteral() |
Atom |
makeCopy()
Creates and returns a deep copy of this Atom.
|
static Atom |
readFrom(java.io.InputStream is)
Read this Atom from an XML fragment.
|
void |
setField(java.lang.String field)
the field on which the pattern is applied
A field may be the whole url or a part of it (url, scheme, host, port, path, query) |
void |
setKind(java.lang.String kind)
specify the semantics of the attribute value
- "length": specify the length of a field ([:10], [11:12], [30:]) - "exact", "prefix", "suffix", "inside": specify a regexp and its anchoring |
void |
setLitteral(boolean litteral) |
void |
setMatchedUrl(java.lang.String matchedUrl)
If not empty, this rule applies on the url provided with the name matchedUrl,
instead of the main url. |
void |
setNorm(java.lang.String norm)
Specify the normalization level (default is case insentive match)
values: norm, lower or none |
void |
setValue(java.lang.String value)
value (regexp)
|
java.lang.String |
toString()
String representation of this Atom.
|
Atom |
withField(java.lang.String field) |
Atom |
withKind(java.lang.String kind) |
Atom |
withLitteral(boolean litteral) |
Atom |
withLitteral(java.lang.Boolean litteral) |
Atom |
withMatchedUrl(java.lang.String matchedUrl) |
Atom |
withNorm(java.lang.String norm) |
Atom |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this Atom as an XML fragment
|
public java.lang.String field
public java.lang.String kind
public java.lang.String norm
public static final java.lang.String DEFAULT_NORM
public java.lang.String value
public java.lang.String matchedUrl
public boolean litteral
public static final boolean DEFAULT_LITTERAL
public Atom()
public Atom(Atom o)
public void setField(java.lang.String field)
public java.lang.String getField()
public Atom withField(java.lang.String field)
public void setKind(java.lang.String kind)
public java.lang.String getKind()
public Atom withKind(java.lang.String kind)
public void setNorm(java.lang.String norm)
public java.lang.String getNorm()
public Atom withNorm(java.lang.String norm)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public Atom withValue(java.lang.String value)
public void setMatchedUrl(java.lang.String matchedUrl)
public java.lang.String getMatchedUrl()
public Atom withMatchedUrl(java.lang.String matchedUrl)
public void setLitteral(boolean litteral)
public boolean isLitteral()
public Atom withLitteral(boolean litteral)
public Atom withLitteral(java.lang.Boolean litteral)
public Atom clone()
public Atom makeCopy()
public static Atom readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
public static Atom fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
Copyright © 2021 Dassault Systèmes, All Rights Reserved.