001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: StatusDetail.java,v 1.2 2008/06/25 05:48:12 qcheng Exp $ 026 * 027 */ 028 029package com.sun.identity.xacml.context; 030 031import com.sun.identity.xacml.common.XACMLException; 032 033import org.w3c.dom.Element; 034 035/** 036 * The <code>StatusCode</code> element is a container of 037 * one or more <code>Status</code>s issuded by authorization authority. 038 * @supported.all.api 039 * <p/> 040 * Schema: 041 * <pre> 042 * <xs:element name="StatusDetail" type="xacml-context:StatusDetailType"/> 043 * <xs:complexType name="StatusDetailType"> 044 * <xs:sequence> 045 * <xs:any namespace="##any" processContents="lax" 046 * minOccurs="0" maxOccurs="unbounded"/> 047 * <xs:sequence> 048 * <xs:complexType> 049 * >/pre> 050 */ 051public interface StatusDetail { 052 053 054 055 public Element getElement(); 056 057 public void setElement(Element element) throws XACMLException; 058 059 /** 060 * Returns a string representation 061 * 062 * @return a string representation 063 * @exception XACMLException if conversion fails for any reason 064 */ 065 public String toXMLString() throws XACMLException; 066 067 /** 068 * Returns a string representation 069 * @param includeNSPrefix Determines whether or not the namespace qualifier 070 * is prepended to the Element when converted 071 * @param declareNS Determines whether or not the namespace is declared 072 * within the Element. 073 * @return a string representation 074 * @exception XACMLException if conversion fails for any reason 075 */ 076 public String toXMLString(boolean includeNSPrefix, boolean declareNS) 077 throws XACMLException; 078 079 /** 080 * Checks if the object is mutable 081 * 082 * @return <code>true</code> if the object is mutable, 083 * <code>false</code> otherwise 084 */ 085 public boolean isMutable(); 086 087 /** 088 * Makes the object immutable 089 */ 090 public void makeImmutable(); 091 092}
Copyright © 2010-2017, ForgeRock All Rights Reserved.