public ContainerPolicy getContainerPolicy() { return xmlAnyCollectionMapping.getContainerPolicy(); }
public Object clone() { // Bug 3037701 - clone the AttributeAccessor XMLAnyCollectionMapping mapping = null; mapping = (XMLAnyCollectionMapping) super.clone(); mapping.setContainerPolicy(this.getContainerPolicy()); mapping.setField(this.getField()); return mapping; }
public Object clone() { // Bug 3037701 - clone the AttributeAccessor XMLAnyCollectionMapping mapping = null; mapping = (XMLAnyCollectionMapping) super.clone(); mapping.setContainerPolicy(this.getContainerPolicy()); mapping.setField(this.getField()); return mapping; }
public Object clone() { // Bug 3037701 - clone the AttributeAccessor XMLAnyCollectionMapping mapping = null; mapping = (XMLAnyCollectionMapping) super.clone(); mapping.setContainerPolicy(this.getContainerPolicy()); mapping.setField(this.getField()); return mapping; }
NodeList children = root.getChildNodes(); ContainerPolicy cp = getContainerPolicy(); Object container = null; if (reuseContainer) {
NodeList children = root.getChildNodes(); ContainerPolicy cp = getContainerPolicy(); Object container = null; if (reuseContainer) {
NodeList children = root.getChildNodes(); ContainerPolicy cp = getContainerPolicy(); Object container = null; if (reuseContainer) {
ContainerPolicy cp = this.getContainerPolicy(); ArrayList childNodes = getUnmappedChildNodes(record.getDOM().getChildNodes()); Object iter = cp.iteratorFor(attributeValue);
ContainerPolicy cp = this.getContainerPolicy(); ArrayList childNodes = getUnmappedChildNodes(record.getDOM().getChildNodes()); Object iter = cp.iteratorFor(attributeValue);
ContainerPolicy cp = this.getContainerPolicy(); ArrayList childNodes = getUnmappedChildNodes(record.getDOM().getChildNodes()); Object iter = cp.iteratorFor(attributeValue);
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) { if (xmlAnyCollectionMapping.isReadOnly()) { return false; } ContainerPolicy cp = xmlAnyCollectionMapping.getContainerPolicy(); Object collection = xmlAnyCollectionMapping.getAttributeAccessor().getAttributeValueFromObject(object); if (null == collection) { return false; } Object iterator = cp.iteratorFor(collection); if (cp.hasNext(iterator)) { XPathFragment groupingFragment = marshalRecord.openStartGroupingElements(namespaceResolver); marshalRecord.closeStartGroupingElements(groupingFragment); } else { return false; } Object objectValue; while (cp.hasNext(iterator)) { objectValue = cp.next(iterator, session); if(xmlAnyCollectionMapping.getConverter() != null) { objectValue = xmlAnyCollectionMapping.getConverter().convertObjectValueToDataValue(objectValue, session, marshalRecord.getMarshaller()); } marshalSingleValue(xPathFragment, marshalRecord, object, objectValue, session, namespaceResolver, ObjectMarshalContext.getInstance()); } return true; }