001/** 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 * 006 */ 007package org.fcrepo.migration.foxml; 008 009import java.util.Arrays; 010import java.util.List; 011 012import javax.xml.bind.annotation.XmlElement; 013 014import org.fcrepo.migration.ObjectProperties; 015import org.fcrepo.migration.ObjectProperty; 016 017/** 018 * An ObjectProperties implementation that is annotated to allow 019 * JAXB unmarshalling from a FOXML XML file for stream. 020 * @author mdurbin 021 */ 022public class FoxmlObjectProperties implements ObjectProperties { 023 024 @XmlElement(name = "property", namespace = "info:fedora/fedora-system:def/foxml#") 025 FoxmlObjectProperty[] properties; 026 027 @Override 028 public List<? extends ObjectProperty> listProperties() { 029 return Arrays.asList(properties); 030 } 031}