public class TruncateOperation extends MetaSpecificOperation implements com.exalead.util.Checkable, java.io.Serializable
MetaSpecificOperation.Visitor
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_LENGTH |
static boolean |
DEFAULT_STRICT |
int |
maxLength |
boolean |
strict |
name
Constructor and Description |
---|
TruncateOperation() |
TruncateOperation(int maxLength) |
TruncateOperation(TruncateOperation o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(HitOperation.Visitor visitor) |
void |
accept(MetaSpecificOperation.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this TruncateOperation.
|
static TruncateOperation |
fromString(java.lang.String s)
String representation of this TruncateOperation.
|
int |
getMaxLength()
Max character length after which the content will be truncated.
|
boolean |
isStrict()
Truncates even if a blank character is not met.
|
TruncateOperation |
makeCopy()
Creates and returns a deep copy of this TruncateOperation.
|
static TruncateOperation |
readFrom(java.io.InputStream is)
Read this TruncateOperation from an XML fragment.
|
void |
setMaxLength(int maxLength)
Max character length after which the content will be truncated.
|
void |
setStrict(boolean strict)
Truncates even if a blank character is not met.
|
java.lang.String |
toString()
String representation of this TruncateOperation.
|
TruncateOperation |
withMaxLength(int maxLength) |
TruncateOperation |
withMaxLength(java.lang.Integer maxLength) |
TruncateOperation |
withName(java.lang.String name) |
TruncateOperation |
withStrict(boolean strict) |
TruncateOperation |
withStrict(java.lang.Boolean strict) |
void |
writeTo(java.io.OutputStream os)
Write this TruncateOperation as an XML fragment
|
getName, setName
public int maxLength
public static final int DEFAULT_MAX_LENGTH
public boolean strict
public static final boolean DEFAULT_STRICT
public TruncateOperation()
public TruncateOperation(int maxLength)
public TruncateOperation(TruncateOperation o)
public TruncateOperation withName(java.lang.String name)
withName
in class MetaSpecificOperation
public void setMaxLength(int maxLength)
public int getMaxLength()
public TruncateOperation withMaxLength(int maxLength)
public TruncateOperation withMaxLength(java.lang.Integer maxLength)
public void setStrict(boolean strict)
public boolean isStrict()
public TruncateOperation withStrict(boolean strict)
public TruncateOperation withStrict(java.lang.Boolean strict)
public TruncateOperation makeCopy()
makeCopy
in class MetaSpecificOperation
public static TruncateOperation 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 MetaSpecificOperation
javax.xml.bind.JAXBException
java.io.IOException
public static TruncateOperation 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 MetaSpecificOperation
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class MetaSpecificOperation
com.exalead.util.TypedException
public void accept(MetaSpecificOperation.Visitor visitor) throws com.exalead.util.TypedException
accept
in class MetaSpecificOperation
com.exalead.util.TypedException
public void accept(HitOperation.Visitor visitor) throws com.exalead.util.TypedException
accept
in class HitOperation
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.