|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.oxm.mappings.nullpolicy.AbstractNullPolicy
org.eclipse.persistence.oxm.mappings.nullpolicy.IsSetNullPolicy
public class IsSetNullPolicy
PUBLIC:
Description:
This null policy allows for various configurations of isSet behavior to be set.
Marshal:
The boolean value of the isSet() state of a node will determine whether a node will be written out
for a null value.
Unmarshal:
The following instance fields can be set:
Usage:
NullCapableValue
Constructor Summary | |
---|---|
IsSetNullPolicy()
Default Constructor Set the IsSetPerformedForAbsentNode to false to enable the other 2 flags isNullRepresentedByEmptyNode and isNullRepresentedByXsiNil |
|
IsSetNullPolicy(String anIsSetMethodName)
Specific Constructor to set the name for checking the isSet state of the mapping |
|
IsSetNullPolicy(String anIsSetMethodName,
boolean bIsNullRepresentedByEmptyNode,
boolean bIsNullRepresentedByXsiNil,
XMLNullRepresentationType aMarshalNullRepresentation)
Specific Constructor to set both the Marshal enum and the Unmarshal flags. |
Method Summary | |
---|---|
boolean |
compositeObjectMarshal(XMLRecord record,
Object object,
XMLField field,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: When using the DOM Platform, this method is responsible for marshalling null values for the XML Composite Object Mapping. |
boolean |
compositeObjectMarshal(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
MarshalRecord marshalRecord,
Object object,
Session session,
NamespaceResolver namespaceResolver)
INTERNAL: When using the SAX Platform, this method is responsible for marshalling null values for the XML Composite Object Mapping. |
boolean |
directMarshal(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
MarshalRecord marshalRecord,
Object object,
Session session,
NamespaceResolver namespaceResolver)
INTERNAL: When using the SAX or DOM Platform, this method is responsible for marshalling null values for the XML Direct Mapping. |
String |
getIsSetMethodName()
|
Object[] |
getIsSetParameters()
|
Class[] |
getIsSetParameterTypes()
|
void |
setIsSetMethodName(String anIsSetMethodName)
|
void |
setIsSetParameters(Object[] parameters)
|
void |
setIsSetParameterTypes(Class[] parameterTypes)
|
void |
xPathNode(org.eclipse.persistence.internal.oxm.XPathNode xPathNode,
org.eclipse.persistence.internal.oxm.NullCapableValue nullCapableValue)
INTERNAL: When using the SAX Platform this allows a NodeValue to be registered to receive events from the TreeObjectBuilder. |
Methods inherited from class org.eclipse.persistence.oxm.mappings.nullpolicy.AbstractNullPolicy |
---|
getIsSetPerformedForAbsentNode, getMarshalNullRepresentation, isNullRepresentedByEmptyNode, isNullRepresentedByXsiNil, setMarshalNullRepresentation, setNullRepresentedByEmptyNode, setNullRepresentedByXsiNil, valueIsNull, valueIsNull |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsSetNullPolicy()
public IsSetNullPolicy(String anIsSetMethodName)
anIsSetMethodName
- public IsSetNullPolicy(String anIsSetMethodName, boolean bIsNullRepresentedByEmptyNode, boolean bIsNullRepresentedByXsiNil, XMLNullRepresentationType aMarshalNullRepresentation)
anIsSetMethodName
- bIsNullRepresentedByEmptyNode
- bIsNullRepresentedByXsiNil
- aMarshalNullRepresentation
- Method Detail |
---|
public boolean directMarshal(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Session session, NamespaceResolver namespaceResolver)
AbstractNullPolicy
directMarshal
in class AbstractNullPolicy
public boolean compositeObjectMarshal(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Session session, NamespaceResolver namespaceResolver)
AbstractNullPolicy
compositeObjectMarshal
in class AbstractNullPolicy
public boolean compositeObjectMarshal(XMLRecord record, Object object, XMLField field, org.eclipse.persistence.internal.sessions.AbstractSession session)
AbstractNullPolicy
compositeObjectMarshal
in class AbstractNullPolicy
public void xPathNode(org.eclipse.persistence.internal.oxm.XPathNode xPathNode, org.eclipse.persistence.internal.oxm.NullCapableValue nullCapableValue)
AbstractNullPolicy
xPathNode
in class AbstractNullPolicy
public String getIsSetMethodName()
public void setIsSetMethodName(String anIsSetMethodName)
isSetMethodName
- public Class[] getIsSetParameterTypes()
public void setIsSetParameterTypes(Class[] parameterTypes)
parameterTypes
- public Object[] getIsSetParameters()
public void setIsSetParameters(Object[] parameters)
parameters
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |