|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.bom.serializer.IlrAbstractSerializer
public abstract class IlrAbstractSerializer
This abstract serializer provides an implementation of the methods that are used to read and write object models. However, the implementation of the read and write operations are left to the implementation of this class.
Constructor Summary | |
---|---|
IlrAbstractSerializer()
|
Method Summary | |
---|---|
ClassLoader |
getClassLoader()
Returns the class loader set by a call to setClassLoader . |
boolean |
isCompactMode()
Returns true if compact mode is enabled when
writing an object model. |
boolean |
isJavaClassLookupEnabled()
Returns true if Java class lookup is enabled when reading
an object model definition. |
void |
setClassLoader(ClassLoader classLoader)
Sets the class loader used by the serializer to define native classes. |
void |
setCompactMode(boolean compactMode)
Sets compact mode to compactMode . |
void |
setJavaClassLookupEnabled(boolean classLookupEnabled)
Enables or disables Java class lookup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ilog.rules.bom.serializer.IlrSerializer |
---|
getName, readObjectModel, writeObjectModel, writeObjectModel, writeObjectModel |
Constructor Detail |
---|
public IlrAbstractSerializer()
Method Detail |
---|
public ClassLoader getClassLoader()
setClassLoader
.
getClassLoader
in interface IlrSerializer
public void setClassLoader(ClassLoader classLoader)
null
then the
Class.forName
method is used to load classes.
Initially this property is null
.
setClassLoader
in interface IlrSerializer
public boolean isJavaClassLookupEnabled()
true
if Java class lookup is enabled when reading
an object model definition. When enabled, classes declared as native
are mapped to the corresponding Java class.
Initially this property is false
.
isJavaClassLookupEnabled
in interface IlrSerializer
public void setJavaClassLookupEnabled(boolean classLookupEnabled)
setJavaClassLookupEnabled
in interface IlrSerializer
public boolean isCompactMode()
true
if compact mode is enabled when
writing an object model. When enabled classes bound to actual
Java classes (those for which IlrType.getJavaClass
has a non null
return value) are not written to the
output stream by the writeObjectModel
method.
Note that when reading streams that were produced in
compact mode, Java class lookup must be enabled (see
setJavaClassLookupEnabled
.
Initially this property is not enabled.
isCompactMode
in interface IlrSerializer
public void setCompactMode(boolean compactMode)
compactMode
.
setCompactMode
in interface IlrSerializer
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |