Class XMLChoiceCollectionMappingMarshalNodeValue

    • Constructor Detail

      • XMLChoiceCollectionMappingMarshalNodeValue

        public XMLChoiceCollectionMappingMarshalNodeValue​(ChoiceCollectionMapping mapping,
                                                          Field xmlField)
    • Method Detail

      • setFieldToNodeValues

        public void setFieldToNodeValues​(java.util.Map<Field,​NodeValue> fieldToNodeValues)
      • getAllNodeValues

        public java.util.Collection<NodeValue> getAllNodeValues()
      • isWrapperAllowedAsCollectionName

        public boolean isWrapperAllowedAsCollectionName()
        Description copied from interface: ContainerValue
        For media types that provide a native representation of collections (such as JSON arrays), can the representation be simplified so that the grouping element can be used as the collection name.
        Specified by:
        isWrapperAllowedAsCollectionName in interface ContainerValue
      • setContainerInstance

        public void setContainerInstance​(java.lang.Object object,
                                         java.lang.Object containerInstance)
        Specified by:
        setContainerInstance in interface ContainerValue
      • isContainerValue

        public boolean isContainerValue()
        Description copied from class: NodeValue
        INTERNAL:
        Overrides:
        isContainerValue in class NodeValue
        Returns:
        Returns true if the NodeValue implements ContainerValue.
        See Also:
        ContainerValue
      • getReuseContainer

        public boolean getReuseContainer()
        Description copied from interface: ContainerValue
        Return true if the original container on the object should be used if present. If it is not present then the container policy will be used to create the container.
        Specified by:
        getReuseContainer in interface ContainerValue
      • setIsMixedNodeValue

        public void setIsMixedNodeValue​(boolean b)
        INTERNAL: Indicates that this is the choice mapping node value that represents the mixed content.
      • isMixedContentNodeValue

        public boolean isMixedContentNodeValue()
        INTERNAL: Return true if this is the node value representing mixed content.
        Overrides:
        isMixedContentNodeValue in class NodeValue
        Returns:
      • setIndex

        public void setIndex​(int index)
        INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord
        Specified by:
        setIndex in interface ContainerValue
      • getIndex

        public int getIndex()
        INTERNAL: Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord Set during TreeObjectBuilder initialization
        Specified by:
        getIndex in interface ContainerValue
      • isDefaultEmptyContainer

        public boolean isDefaultEmptyContainer()
        INTERNAL Return true if an empty container should be set on the object if there is no presence of the collection in the XML document.
        Specified by:
        isDefaultEmptyContainer in interface ContainerValue
        Since:
        EclipseLink 2.3.3