public boolean isIgnoredElement(String name) { return isIgnoredElementMapper.isIgnoredElement(name); }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { final Object result = instantiateNewInstance(context); final Set seenProperties = new HashSet() { public boolean add(Object e) { if (!super.add(e)) { throw new DuplicatePropertyException(((FastField)e).getName()); } return true; } }; Class resultType = result.getClass(); while (reader.hasMoreChildren()) { reader.moveDown(); String propertyName = mapper.realMember(resultType, reader.getNodeName()); if (mapper.shouldSerializeMember(resultType, propertyName)) { boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(propertyName, resultType); if (propertyExistsInClass) { Class type = determineType(reader, result, propertyName); Object value = context.convertAnother(result, type); beanProvider.writeProperty(result, propertyName, value); seenProperties.add(new FastField(resultType, propertyName)); } else if (!mapper.isIgnoredElement(propertyName)) { throw new MissingFieldException(resultType.getName(), propertyName); } } reader.moveUp(); } return result; }
public boolean isIgnoredElement(String name) { return isIgnoredElementMapper.isIgnoredElement(name); }
@Override public boolean isIgnoredElement(final String name) { return isIgnoredElementMapper.isIgnoredElement(name); }
public boolean isIgnoredElement(String name) { return isIgnoredElementMapper.isIgnoredElement(name); }
public boolean isIgnoredElement(String name) { return isIgnoredElementMapper.isIgnoredElement(name); }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { final Object result = instantiateNewInstance(context); final Set seenProperties = new HashSet() { public boolean add(Object e) { if (!super.add(e)) { throw new DuplicatePropertyException(((FastField)e).getName()); } return true; } }; Class resultType = result.getClass(); while (reader.hasMoreChildren()) { reader.moveDown(); String propertyName = mapper.realMember(resultType, reader.getNodeName()); if (mapper.shouldSerializeMember(resultType, propertyName)) { boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(propertyName, resultType); if (propertyExistsInClass) { Class type = determineType(reader, result, propertyName); Object value = context.convertAnother(result, type); beanProvider.writeProperty(result, propertyName, value); seenProperties.add(new FastField(resultType, propertyName)); } else if (!mapper.isIgnoredElement(propertyName)) { throw new MissingFieldException(resultType.getName(), propertyName); } } reader.moveUp(); } return result; }
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { final Object result = instantiateNewInstance(context); final Set seenProperties = new HashSet() { public boolean add(Object e) { if (!super.add(e)) { throw new DuplicatePropertyException(((FastField)e).getName()); } return true; } }; Class resultType = result.getClass(); while (reader.hasMoreChildren()) { reader.moveDown(); String propertyName = mapper.realMember(resultType, reader.getNodeName()); if (mapper.shouldSerializeMember(resultType, propertyName)) { boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(propertyName, resultType); if (propertyExistsInClass) { Class type = determineType(reader, result, propertyName); Object value = context.convertAnother(result, type); beanProvider.writeProperty(result, propertyName, value); seenProperties.add(new FastField(resultType, propertyName)); } else if (!mapper.isIgnoredElement(propertyName)) { throw new MissingFieldException(resultType.getName(), propertyName); } } reader.moveUp(); } return result; }
beanProvider.writeProperty(result, propertyName, value); seenProperties.add(new FastField(resultType, propertyName)); } else if (!mapper.isIgnoredElement(propertyName)) { throw new MissingFieldException(resultType.getName(), propertyName);
public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) { final Object result = instantiateNewInstance(context); final Set seenProperties = new HashSet() { public boolean add(Object e) { if (!super.add(e)) { throw new DuplicatePropertyException(((FastField)e).getName()); } return true; } }; Class resultType = result.getClass(); while (reader.hasMoreChildren()) { reader.moveDown(); String propertyName = mapper.realMember(resultType, reader.getNodeName()); if (mapper.shouldSerializeMember(resultType, propertyName)) { boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(propertyName, resultType); if (propertyExistsInClass) { Class type = determineType(reader, result, propertyName); Object value = context.convertAnother(result, type); beanProvider.writeProperty(result, propertyName, value); seenProperties.add(new FastField(resultType, propertyName)); } else if (!mapper.isIgnoredElement(propertyName)) { throw new MissingFieldException(resultType.getName(), propertyName); } } reader.moveUp(); } return result; }