|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.ox.mappings.nullpolicy.AbstractNullPolicy
public abstract class AbstractNullPolicy
Description: This node null policy allows for the handling of
various representations of null in XML documents.
Null policies have 2 concrete implementations:
Unmarshal Flag | Description |
---|---|
isSetPerformedForAbsentNode | This umarshal flag represents whether a set is done for absent nodes only. |
isNullRepresentedByEmptyNode | If this unmarshal flag is false for empty nodes we set an empty Object for composite mappings, otherwise we set to null. |
isNullRepresentedByXsiNil | If this unmarshal flag is false for xsi:nil nodes we ignore
the xsi:nil attribute and treat as an empty node. Otherwise we set to null. |
Marshal Enum | XMLNullRepresentationType Description | XSI_NIL | Nillable: Write out an xsi:nil="true" attribute. |
---|---|
ABSENT_NODE(default) | Optional: Write out no node. |
EMPTY_NODE | Required: Write out an empty |
Constructor Summary | |
---|---|
AbstractNullPolicy()
|
Method Summary | |
---|---|
boolean |
getIsSetPerformedForAbsentNode()
|
XMLNullRepresentationType |
getMarshalNullRepresentation()
Get the enum that determines what XML to write when a null value is encountered. |
boolean |
isNullRepresentedByEmptyNode()
|
boolean |
isNullRepresentedByXsiNil()
|
void |
setMarshalNullRepresentation(XMLNullRepresentationType anEnumInstance)
Set the enum that determines what XML to write when a null value is encountered. |
void |
setNullRepresentedByEmptyNode(boolean bisNullRepresentedByEmptyNode)
|
void |
setNullRepresentedByXsiNil(boolean bIsNullRepresentedByXsiNil)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractNullPolicy()
Method Detail |
---|
public XMLNullRepresentationType getMarshalNullRepresentation()
enumValue
- public void setMarshalNullRepresentation(XMLNullRepresentationType anEnumInstance)
enumValue
- public boolean getIsSetPerformedForAbsentNode()
public boolean isNullRepresentedByEmptyNode()
public void setNullRepresentedByEmptyNode(boolean bisNullRepresentedByEmptyNode)
bIsNullRepresentedByEmptyNode
- public boolean isNullRepresentedByXsiNil()
public void setNullRepresentedByXsiNil(boolean bIsNullRepresentedByXsiNil)
isNullRepresentedByXsiNil
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |