public class MultiContextField extends AbstractRetrievedField implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
contextName |
static boolean |
DEFAULT_KEEP_META_NAME |
boolean |
keepMetaName |
java.util.List<MatchRule> |
matchRule |
indexField, name, type
Constructor and Description |
---|
MultiContextField() |
MultiContextField(MultiContextField o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this MultiContextField.
|
static MultiContextField |
fromString(java.lang.String s)
String representation of this MultiContextField.
|
java.lang.String |
getContextName() |
java.util.List<MatchRule> |
getMatchRule()
List of rules to define which document metas should be mapped to this dynamic property.
|
boolean |
isKeepMetaName()
When set to true, a key:value stored in the field will create a meta "key" which value is "value".
|
MultiContextField |
makeCopy()
Creates and returns a deep copy of this MultiContextField.
|
static MultiContextField |
readFrom(java.io.InputStream is)
Read this MultiContextField from an XML fragment.
|
void |
setContextName(java.lang.String contextName) |
void |
setKeepMetaName(boolean keepMetaName)
When set to true, a key:value stored in the field will create a meta "key" which value is "value".
|
java.lang.String |
toString()
String representation of this MultiContextField.
|
MultiContextField |
withContextName(java.lang.String contextName) |
MultiContextField |
withIndexField(java.lang.String indexField) |
MultiContextField |
withKeepMetaName(boolean keepMetaName) |
MultiContextField |
withKeepMetaName(java.lang.Boolean keepMetaName) |
MultiContextField |
withMatchRule(java.util.Collection<MatchRule> __values) |
MultiContextField |
withMatchRule(MatchRule... __values)
List of rules to define which document metas should be mapped to this dynamic property.
|
MultiContextField |
withName(java.lang.String name) |
MultiContextField |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this MultiContextField as an XML fragment
|
getIndexField, getName, getType, setIndexField, setName, setType
public java.lang.String contextName
public java.util.List<MatchRule> matchRule
public boolean keepMetaName
public static final boolean DEFAULT_KEEP_META_NAME
public MultiContextField()
public MultiContextField(MultiContextField o)
public MultiContextField withIndexField(java.lang.String indexField)
withIndexField
in class AbstractRetrievedField
public MultiContextField withName(java.lang.String name)
withName
in class AbstractRetrievedField
public MultiContextField withType(java.lang.String type)
withType
in class AbstractRetrievedField
public void setContextName(java.lang.String contextName)
public java.lang.String getContextName()
public MultiContextField withContextName(java.lang.String contextName)
public java.util.List<MatchRule> getMatchRule()
public MultiContextField withMatchRule(MatchRule... __values)
public MultiContextField withMatchRule(java.util.Collection<MatchRule> __values)
public void setKeepMetaName(boolean keepMetaName)
public boolean isKeepMetaName()
public MultiContextField withKeepMetaName(boolean keepMetaName)
public MultiContextField withKeepMetaName(java.lang.Boolean keepMetaName)
public MultiContextField makeCopy()
makeCopy
in class AbstractRetrievedField
public static MultiContextField 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
writeTo
in class AbstractRetrievedField
javax.xml.bind.JAXBException
java.io.IOException
public static MultiContextField 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()
toString
in class AbstractRetrievedField
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class AbstractRetrievedField
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.