Class IsSetNullPolicy
java.lang.Object
org.eclipse.persistence.oxm.mappings.nullpolicy.AbstractNullPolicy
org.eclipse.persistence.oxm.mappings.nullpolicy.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:
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:
- isSetMethodName:
- isSetParameterTypes:
- isSetParameters:
Usage:
- Set to a non-null value
IsSet==true, value=value - Not set
isSet=false, value=null - Set to null value
isSet=true, value=null - Set to default value
isSet=false, value=default
- See Also:
-
NullCapableValue
-
Field Summary
Fields inherited from class org.eclipse.persistence.oxm.mappings.nullpolicy.AbstractNullPolicy
COLON_W_SCHEMA_NIL_ATTRIBUTE, ignoreAttributesForNil, isNullRepresentedByEmptyNode, isNullRepresentedByXsiNil, isSetPerformedForAbsentNode, marshalNullRepresentation, TRUE, XSI_NIL_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionDefault Constructor Set the IsSetPerformedForAbsentNode to false to enable the other 2 flags isNullRepresentedByEmptyNode and isNullRepresentedByXsiNilIsSetNullPolicy
(String anIsSetMethodName) Specific Constructor to set the name for checking the isSet state of the mappingIsSetNullPolicy
(String anIsSetMethodName, boolean bIsNullRepresentedByEmptyNode, boolean bIsNullRepresentedByXsiNil, XMLNullRepresentationType aMarshalNullRepresentation) Specific Constructor to set both the Marshal enum and the Unmarshal flags. -
Method Summary
Modifier and TypeMethodDescriptionboolean
compositeObjectMarshal
(org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord record, Object object, org.eclipse.persistence.internal.oxm.mappings.Field field, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session) INTERNALboolean
compositeObjectMarshal
(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, org.eclipse.persistence.internal.oxm.record.MarshalRecord marshalRecord, Object object, CoreSession session, org.eclipse.persistence.internal.oxm.NamespaceResolver namespaceResolver) INTERNALvoid
directMarshal
(org.eclipse.persistence.internal.oxm.mappings.Field field, org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord record, Object object) INTERNALboolean
directMarshal
(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, org.eclipse.persistence.internal.oxm.record.MarshalRecord marshalRecord, Object object, CoreSession session, org.eclipse.persistence.internal.oxm.NamespaceResolver namespaceResolver) INTERNAL: When using the SAX or DOM Platform, this method is responsible for marshalling null values for the XML Direct Mapping.Object[]
Class[]
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, ignoreAttributesForNil, isNullRepresentedByEmptyNode, isNullRepresentedByXsiNil, processNamespaceResolverForXSIPrefix, setIgnoreAttributesForNil, setMarshalNullRepresentation, setNullRepresentedByEmptyNode, setNullRepresentedByXsiNil, valueIsNull, valueIsNull
-
Constructor Details
-
IsSetNullPolicy
public IsSetNullPolicy()Default Constructor Set the IsSetPerformedForAbsentNode to false to enable the other 2 flags isNullRepresentedByEmptyNode and isNullRepresentedByXsiNil -
IsSetNullPolicy
Specific Constructor to set the name for checking the isSet state of the mapping- Parameters:
anIsSetMethodName
-
-
IsSetNullPolicy
public IsSetNullPolicy(String anIsSetMethodName, boolean bIsNullRepresentedByEmptyNode, boolean bIsNullRepresentedByXsiNil, XMLNullRepresentationType aMarshalNullRepresentation) Specific Constructor to set both the Marshal enum and the Unmarshal flags.- Parameters:
anIsSetMethodName
-bIsNullRepresentedByEmptyNode
-bIsNullRepresentedByXsiNil
-aMarshalNullRepresentation
-
-
-
Method Details
-
directMarshal
public boolean directMarshal(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, org.eclipse.persistence.internal.oxm.record.MarshalRecord marshalRecord, Object object, CoreSession session, org.eclipse.persistence.internal.oxm.NamespaceResolver namespaceResolver) Description copied from class:AbstractNullPolicy
INTERNAL: When using the SAX or DOM Platform, this method is responsible for marshalling null values for the XML Direct Mapping.- Overrides:
directMarshal
in classAbstractNullPolicy
- Returns:
- true if this method caused any nodes to be marshaled, else false.
-
directMarshal
public void directMarshal(org.eclipse.persistence.internal.oxm.mappings.Field field, org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord record, Object object) INTERNAL- Overrides:
directMarshal
in classAbstractNullPolicy
-
compositeObjectMarshal
public boolean compositeObjectMarshal(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, org.eclipse.persistence.internal.oxm.record.MarshalRecord marshalRecord, Object object, CoreSession session, org.eclipse.persistence.internal.oxm.NamespaceResolver namespaceResolver) INTERNAL- Overrides:
compositeObjectMarshal
in classAbstractNullPolicy
- Returns:
- true if this method caused any nodes to be marshaled, else false.
-
compositeObjectMarshal
public boolean compositeObjectMarshal(org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord record, Object object, org.eclipse.persistence.internal.oxm.mappings.Field field, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session) INTERNAL- Overrides:
compositeObjectMarshal
in classAbstractNullPolicy
- Returns:
- true if this method caused any objects to be marshaled, else false.
-
xPathNode
public void xPathNode(org.eclipse.persistence.internal.oxm.XPathNode xPathNode, org.eclipse.persistence.internal.oxm.NullCapableValue nullCapableValue) Description copied from class:AbstractNullPolicy
INTERNAL: When using the SAX Platform this allows a NodeValue to be registered to receive events from the TreeObjectBuilder.- Specified by:
xPathNode
in classAbstractNullPolicy
-
getIsSetMethodName
- Returns:
-
setIsSetMethodName
- Parameters:
anIsSetMethodName
-
-
getIsSetParameterTypes
- Returns:
-
setIsSetParameterTypes
- Parameters:
parameterTypes
-
-
getIsSetParameters
- Returns:
-
setIsSetParameters
- Parameters:
parameters
-
-