usr/src/java/adr/org/opensolaris/os/adr/Doc.java
changeset 699 34ec90cc612c
equal deleted inserted replaced
698:3c730b38d1b0 699:34ec90cc612c
       
     1 /*
       
     2  * CDDL HEADER START
       
     3  *
       
     4  * The contents of this file are subject to the terms of the
       
     5  * Common Development and Distribution License (the "License").
       
     6  * You may not use this file except in compliance with the License.
       
     7  *
       
     8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9  * or http://www.opensolaris.org/os/licensing.
       
    10  * See the License for the specific language governing permissions
       
    11  * and limitations under the License.
       
    12  *
       
    13  * When distributing Covered Code, include this CDDL HEADER in each
       
    14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15  * If applicable, add the following below this CDDL HEADER, with the
       
    16  * fields enclosed by brackets "[]" replaced with your own identifying
       
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
       
    18  *
       
    19  * CDDL HEADER END
       
    20  */
       
    21 
       
    22 /*
       
    23  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    24  */
       
    25 
       
    26 package org.opensolaris.os.adr;
       
    27 
       
    28 import org.w3c.dom.DOMException;
       
    29 import org.w3c.dom.Element;
       
    30 import org.w3c.dom.Node;
       
    31 
       
    32 public class Doc {
       
    33 
       
    34     private Element summary_;
       
    35     private Element detail_;
       
    36     private String lang_;
       
    37 
       
    38     public Doc(Element summary, Element detail, String lang) {
       
    39 	detail_ = detail;
       
    40 	summary_ = summary;
       
    41 	lang_ = lang;
       
    42     }
       
    43 
       
    44     public Doc(Element summary, Element detail) {
       
    45 	this(summary, detail, "en");
       
    46     }
       
    47 
       
    48     public Element getSummary() {
       
    49 	return summary_;
       
    50     }
       
    51 
       
    52     public Element getDetail() {
       
    53 	return detail_;
       
    54     }
       
    55 }