Top Methods
org.eclipse.persistence.internal.oxm.mappings

public Interface Field<CONVERSION_MANAGER extends ConversionManager, NAMESPACE_RESOLVER extends NamespaceResolver>

extends CoreField
Known Direct Subinterfaces
org.eclipse.persistence.internal.oxm.mappings.UnionField
Known Direct Implementers
org.eclipse.persistence.oxm.XMLField
Imports
javax.xml.namespace.QName, org.eclipse.persistence.internal.core.helper.CoreField, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession, org.eclipse.persistence.internal.oxm.ConversionManager, .NamespaceResolver, .XPathFragment, org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord

Method Summary

Modifier and TypeMethod and Description
public Object
convertValueBasedOnSchemaType(Object value, CONVERSION_MANAGER xmlConversionManager, AbstractUnmarshalRecord<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, FIELD extends CoreField, UNMARSHALLER extends Unmarshaller<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, DESCRIPTOR extends Descriptor, ID_RESOLVER extends IDResolver, MEDIA_TYPE extends MediaType, ROOT extends Root, UNMARSHALLER_HANDLER extends UnmarshallerHandler, UNMARSHALLER_LISTENER extends Unmarshaller.Listener>> record)

INTERNAL: Called from DOMRecord and XMLReader.

public Class<?>

Returns:

The class corresponding to the specified schema type, if no corresponding match found returns null
getJavaClass
(QName
The qualified name of the XML Schema type to use as a key in the lookup
qname
,
ConversionManager conversionManager)

Return the class for a given qualified XML Schema type

public XPathFragment<XML_FIELD extends Field>
getLastXPathFragment()

INTERNAL: Return the last XPathFragment.

public QName
public String
getName()

Redeclares org.eclipse.persistence.internal.core.helper.CoreField.getName.

Return the unqualified name of the field.
public NAMESPACE_RESOLVER

Returns:

The NamespaceResolver associated with this XMLField
getNamespaceResolver
()

Get the NamespaceResolver associated with this XMLField

public QName

Returns:

the schema type
getSchemaType
()

Return the schema type associated with this field

public QName
getSchemaTypeForValue(Object value, CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>> session)

INTERNAL:

public Class<?>
public QName

Returns:

QName The qualified XML Schema type, if no corresponding match found returns null
getXMLType
(Class<?>
The class to use as a key in the lookup
javaClass
,
ConversionManager conversionManager)

Return the qualified XML Schema type for a given class

public String

Returns:

The xpath statement associated with this XMLField
getXPath
()

Returns the xpath statement associated with this XMLField

public XPathFragment<XML_FIELD extends Field>
getXPathFragment()

INTERNAL: Maintain a direct pointer to the first XPathFragment.

public boolean
public void
public boolean
isCDATA()

INTERNAL:

public boolean

Returns:

True if content is nested array.
isNestedArray
()

INTERNAL:

public boolean
isRequired()

Indicates if this XMLField represents a "required" XML element or attribute ([minOccurs="1"] for elements, [use="required"] for attributes).

public boolean
isSchemaType(QName schemaType)

INTERNAL

public boolean

Returns:

true if the xpath is ".", false otherwise
isSelfField
()

INTERNAL: Indicates if the xpath for this field is "."

public boolean

Returns:

True when we should base conversions on the "type" attribute on elements, otherwise false
isTypedTextField
()

Returns if the field is a typed text field True when we should base conversions on the "type" attribute on elements

public boolean
isUnionField()

INTERNAL: Returns false since this is a union field The subclass XMLUnionField returns true for this

public void
setIsCDATA(boolean CDATA)

INTERNAL:

public void
setIsTypedTextField(boolean
The boolean value specifiy if this is a typed text field
value
)

Set if the field is a typed text field True when we should base conversions on the "type" attribute on elements

public void
setNamespaceResolver(NAMESPACE_RESOLVER
The namespaceResolver to be associated with this XMLField
newNamespaceResolver
)

Set the NamespaceResolver associated with this XMLField

public void
setNestedArray(boolean
flag.
nestedArray
)

Set nested array flag.

public void
setRequired(boolean isRequired)

Set whether this XMLField represents a "required" XML element or attribute ([minOccurs="1"] for elements, [use="required"] for attributes).

public void
setSchemaType(QName
QName to be added to the list of schema types
value
)

Sets the schematype associated with this XMLField This is an optional setting; when set the schema type will be used to format the XML appropriately

public void
setUsesSingleNode(boolean
True if the items in the collection are in a single node or false if each of the items in the collection is in its own node
usesSingleNode
)

Sets whether the mapping uses a single node.

public void
setXPath(String
The xpath statement to be associated with this XMLField
xPath
)

Set the xpath statment for this XMLField.

public boolean

Returns:

True if the items in the collection are in a single node or false if each of the items in the collection is in its own node.
usesSingleNode
()

Checks whether the mapping uses a single node.

Inherited from org.eclipse.persistence.internal.core.helper.CoreField:
setNamesetType

Method Detail

convertValueBasedOnSchemaTypeback to summary
public Object convertValueBasedOnSchemaType(Object value, CONVERSION_MANAGER xmlConversionManager, AbstractUnmarshalRecord<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, FIELD extends CoreField, UNMARSHALLER extends Unmarshaller<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, DESCRIPTOR extends Descriptor, ID_RESOLVER extends IDResolver, MEDIA_TYPE extends MediaType, ROOT extends Root, UNMARSHALLER_HANDLER extends UnmarshallerHandler, UNMARSHALLER_LISTENER extends Unmarshaller.Listener>> record)

INTERNAL: Called from DOMRecord and XMLReader. MappingNodeValues call XMLReader which calls this method so that other XMLReader subclasses can override.

getJavaClassback to summary
public Class<?> getJavaClass(QName qname, ConversionManager conversionManager)

Return the class for a given qualified XML Schema type

Parameters
qname:QName

The qualified name of the XML Schema type to use as a key in the lookup

Returns:Class<?>

The class corresponding to the specified schema type, if no corresponding match found returns null

getLastXPathFragmentback to summary
public XPathFragment<XML_FIELD extends Field> getLastXPathFragment()

INTERNAL: Return the last XPathFragment.

getLeafElementTypeback to summary
public QName getLeafElementType()
getNameback to summary
public String getName()

Redeclares org.eclipse.persistence.internal.core.helper.CoreField.getName.

Return the unqualified name of the field.

Annotations
@Override
getNamespaceResolverback to summary
public NAMESPACE_RESOLVER getNamespaceResolver()

Get the NamespaceResolver associated with this XMLField

Returns:NAMESPACE_RESOLVER

The NamespaceResolver associated with this XMLField

getSchemaTypeback to summary
public QName getSchemaType()

Return the schema type associated with this field

Returns:QName

the schema type

getSchemaTypeForValueback to summary
public QName getSchemaTypeForValue(Object value, CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>> session)

INTERNAL:

getTypeback to summary
public Class<?> getType()

Redeclares org.eclipse.persistence.internal.core.helper.CoreField.getType.

Annotations
@Override
getXMLTypeback to summary
public QName getXMLType(Class<?> javaClass, ConversionManager conversionManager)

Return the qualified XML Schema type for a given class

Parameters
javaClass:Class<?>

The class to use as a key in the lookup

Returns:QName

QName The qualified XML Schema type, if no corresponding match found returns null

getXPathback to summary
public String getXPath()

Returns the xpath statement associated with this XMLField

Returns:String

The xpath statement associated with this XMLField

getXPathFragmentback to summary
public XPathFragment<XML_FIELD extends Field> getXPathFragment()

INTERNAL: Maintain a direct pointer to the first XPathFragment. For example given the following XPath first/middle/@last, first is the first XPathFragment.

hasLastXPathFragmentback to summary
public boolean hasLastXPathFragment()

INTERNAL:

initializeback to summary
public void initialize()
isCDATAback to summary
public boolean isCDATA()

INTERNAL:

isNestedArrayback to summary
public boolean isNestedArray()

INTERNAL:

Returns:boolean

True if content is nested array.

isRequiredback to summary
public boolean isRequired()

Indicates if this XMLField represents a "required" XML element or attribute ([minOccurs="1"] for elements, [use="required"] for attributes).

Note

This API is used only for Schema Generation.

See Also
org.eclipse.persistence.internal.oxm.schema.SchemaModelGenerator
isSchemaTypeback to summary
public boolean isSchemaType(QName schemaType)

INTERNAL

isSelfFieldback to summary
public boolean isSelfField()

INTERNAL: Indicates if the xpath for this field is "."

Returns:boolean

true if the xpath is ".", false otherwise

isTypedTextFieldback to summary
public boolean isTypedTextField()

Returns if the field is a typed text field True when we should base conversions on the "type" attribute on elements

Returns:boolean

True when we should base conversions on the "type" attribute on elements, otherwise false

isUnionFieldback to summary
public boolean isUnionField()

INTERNAL: Returns false since this is a union field The subclass XMLUnionField returns true for this

setIsCDATAback to summary
public void setIsCDATA(boolean CDATA)

INTERNAL:

setIsTypedTextFieldback to summary
public void setIsTypedTextField(boolean value)

Set if the field is a typed text field True when we should base conversions on the "type" attribute on elements

Parameters
value:boolean

The boolean value specifiy if this is a typed text field

setNamespaceResolverback to summary
public void setNamespaceResolver(NAMESPACE_RESOLVER newNamespaceResolver)

Set the NamespaceResolver associated with this XMLField

Parameters
newNamespaceResolver:NAMESPACE_RESOLVER

The namespaceResolver to be associated with this XMLField

setNestedArrayback to summary
public void setNestedArray(boolean nestedArray)

Set nested array flag. Used in JSON marshalling.

Parameters
nestedArray:boolean

flag.

setRequiredback to summary
public void setRequired(boolean isRequired)

Set whether this XMLField represents a "required" XML element or attribute ([minOccurs="1"] for elements, [use="required"] for attributes).

Note

This API is used only for Schema Generation.

See Also
org.eclipse.persistence.internal.oxm.schema.SchemaModelGenerator
setSchemaTypeback to summary
public void setSchemaType(QName value)

Sets the schematype associated with this XMLField This is an optional setting; when set the schema type will be used to format the XML appropriately

Parameters
value:QName

QName to be added to the list of schema types

setUsesSingleNodeback to summary
public void setUsesSingleNode(boolean usesSingleNode)

Sets whether the mapping uses a single node.

Parameters
usesSingleNode:boolean

True if the items in the collection are in a single node or false if each of the items in the collection is in its own node

setXPathback to summary
public void setXPath(String xPath)

Set the xpath statment for this XMLField.

Parameters
xPath:String

The xpath statement to be associated with this XMLField

usesSingleNodeback to summary
public boolean usesSingleNode()

Checks whether the mapping uses a single node.

Returns:boolean

True if the items in the collection are in a single node or false if each of the items in the collection is in its own node.