001 /** 002 * 003 * Copyright 2004 Protique Ltd 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 * 017 **/ 018 package org.codehaus.activesoap.handler.stax; 019 020 import java.util.List; 021 022 /** 023 * Represents a POJO which can be extended with any content using xsd:any. 024 * 025 * @version $Revision: 1.2 $ 026 */ 027 public interface AnyContent extends ElementContent { 028 /** 029 * Gets the value of the any property. 030 * <p/> 031 * <p/> 032 * This accessor method returns a reference to the live list, 033 * not a snapshot. Therefore any modification you make to the 034 * returned list will be present inside the JAXB object. 035 * This is why there is not a <CODE>set</CODE> method for the any property. 036 * <p/> 037 * <p/> 038 * For example, to add a new item, do as follows: 039 * <pre> 040 * getAny().add(newItem); 041 * </pre> 042 * <p/> 043 * <p/> 044 * <p/> 045 * Objects of the following type(s) are allowed in the list 046 * {@link org.w3c.dom.Element} 047 * {@link Object} 048 */ 049 //public List<Object> getAny() { 050 List getAny(); 051 }