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 javax.xml.bind.annotation.XmlAttribute; 010 011import org.fcrepo.migration.ObjectProperty; 012 013/** 014 * An ObjectProperty implementation that is annotated to allow 015 * JAXB unmarshalling from a FOXML XML file or stream. 016 * @author mdurbin 017 */ 018public class FoxmlObjectProperty implements ObjectProperty { 019 020 @XmlAttribute(name = "NAME") 021 String name; 022 023 @XmlAttribute(name = "VALUE") 024 String value; 025 026 @Override 027 public String getName() { 028 return name; 029 } 030 031 @Override 032 public String getValue() { 033 return value; 034 } 035}