1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 package com.sun.star.report.pentaho.model; 24 25 import java.util.ArrayList; 26 import java.util.List; 27 28 /** 29 * 30 * @author Ocke Janssen 31 */ 32 public class ObjectOleElement extends ReportElement 33 { 34 35 private String url; 36 private final List masterfields; 37 private final List detailfields; 38 private String classid; 39 getClassid()40 public String getClassid() 41 { 42 return classid; 43 } 44 getDetailfields()45 public List getDetailfields() 46 { 47 return detailfields; 48 } 49 getMasterfields()50 public List getMasterfields() 51 { 52 return masterfields; 53 } 54 ObjectOleElement()55 public ObjectOleElement() 56 { 57 masterfields = new ArrayList(); 58 detailfields = new ArrayList(); 59 } 60 getUrl()61 public String getUrl() 62 { 63 return url; 64 } 65 setClassId(final String classid)66 public void setClassId(final String classid) 67 { 68 this.classid = classid; 69 } 70 setUrl(final String _url)71 public void setUrl(final String _url) 72 { 73 url = _url; 74 } 75 addMasterDetailFields(final String master, final String detail)76 public void addMasterDetailFields(final String master, final String detail) 77 { 78 if (master != null) 79 { 80 masterfields.add(master); 81 detailfields.add(detail == null ? master : detail); 82 } 83 } 84 } 85