@Override public Object getProperty(Object object, QName name) throws Exception { CopyrightType cpy = (CopyrightType) object; if("author".equals(name.getLocalPart())) return cpy.getAuthor(); if("year".equals(name.getLocalPart())) return cpy.getYear(); if("license".equals(name.getLocalPart())) return cpy.getLicense(); return null; }
@Override public Object getProperty(Object object, QName name) throws Exception { CopyrightType cpy = (CopyrightType) object; if("author".equals(name.getLocalPart())) return cpy.getAuthor(); if("year".equals(name.getLocalPart())) return cpy.getYear(); if("license".equals(name.getLocalPart())) return cpy.getLicense(); return null; }