public void registerImplicit(Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { ConversionException e = new CircularReferenceException( "Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
public void registerImplicit(Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
@Override public void registerImplicit(final Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
public void registerImplicit(Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
public void registerImplicit(Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
public void registerImplicit(Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
public void registerImplicit(Object item) { if (implicitElements.containsId(item)) { throw new ReferencedImplicitElementException(item, currentPath); } implicitElements.associateId(item, newReferenceKey); } });
protected void convert(final Object item, final Converter converter) { if (parentObjects.containsId(item)) { final ConversionException e = new CircularReferenceException("Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { ConversionException e = new CircularReferenceException( "Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { ConversionException e = new CircularReferenceException( "Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { ConversionException e = new CircularReferenceException( "Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { ConversionException e = new CircularReferenceException( "Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { ConversionException e = new CircularReferenceException( "Recursive reference to parent object"); e.add("item-type", item.getClass().getName()); e.add("converter-type", converter.getClass().getName()); throw e; } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { throw new CircularReferenceException(); } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }
protected void convert(Object item, Converter converter) { if (parentObjects.containsId(item)) { throw new CircularReferenceException(); } parentObjects.associateId(item, ""); converter.marshal(item, writer, this); parentObjects.removeId(item); }