001/**
002 * Copyright 2005-2015 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kew.routeheader;
017
018import java.io.Serializable;
019
020import org.kuali.rice.kew.engine.RouteContext;
021import org.w3c.dom.Document;
022import org.w3c.dom.Element;
023
024
025/**
026 * A facade for the XML content of the document.  Provides methods for
027 * accessing the various relevant portions of the content as well as the
028 * entire document content in DOM or String form.  If the document does
029 * not contain a particular piece, then the associated getter should return
030 * null.
031 * 
032 * @author Kuali Rice Team (rice.collab@kuali.org)
033 */
034public interface DocumentContent extends Serializable {
035
036    public Document getDocument();
037    public Element getApplicationContent();
038    public Element getAttributeContent();
039    public Element getSearchableContent();
040    public String getDocContent();
041    
042    /*
043     * This method is a total hacks, once we fix the interface for role attributes and regular attributes, they can go away
044     */
045    public RouteContext getRouteContext();
046    
047}