< prev index next >

src/java.naming/share/classes/javax/naming/LinkException.java

Print this page




 187       */
 188     public String getLinkExplanation() {
 189         return this.linkExplanation;
 190     }
 191 
 192     /**
 193       * Sets the explanation associated with the problem encountered
 194       * when resolving a link.
 195       *
 196       * @param msg The possibly null detail string explaining more about the problem
 197       * with resolving a link. If null, it means no detail will be recorded.
 198       * @see #getLinkExplanation
 199       */
 200     public void setLinkExplanation(String msg) {
 201         this.linkExplanation = msg;
 202     }
 203 
 204     /**
 205      * Sets the resolved link name field of this exception.
 206      *<p>
 207      * <tt>name</tt> is a composite name. If the intent is to set
 208      * this field using a compound name or string, you must
 209      * "stringify" the compound name, and create a composite
 210      * name with a single component using the string. You can then
 211      * invoke this method using the resulting composite name.
 212      *<p>
 213      * A copy of <code>name</code> is made and stored.
 214      * Subsequent changes to <code>name</code> do not
 215      * affect the copy in this NamingException and vice versa.
 216      *
 217      *
 218      * @param name The name to set resolved link name to. This can be null.
 219      *          If null, it sets the link resolved name field to null.
 220      * @see #getLinkResolvedName
 221      */
 222     public void setLinkResolvedName(Name name) {
 223         if (name != null) {
 224             this.linkResolvedName = (Name)(name.clone());
 225         } else {
 226             this.linkResolvedName = null;
 227         }
 228     }
 229 
 230     /**
 231      * Sets the remaining link name field of this exception.
 232      *<p>
 233      * <tt>name</tt> is a composite name. If the intent is to set
 234      * this field using a compound name or string, you must
 235      * "stringify" the compound name, and create a composite
 236      * name with a single component using the string. You can then
 237      * invoke this method using the resulting composite name.
 238      *<p>
 239      * A copy of <code>name</code> is made and stored.
 240      * Subsequent changes to <code>name</code> do not
 241      * affect the copy in this NamingException and vice versa.
 242      *
 243      * @param name The name to set remaining link name to. This can be null.
 244      *  If null, it sets the remaining name field to null.
 245      * @see #getLinkRemainingName
 246      */
 247     public void setLinkRemainingName(Name name) {
 248         if (name != null)
 249             this.linkRemainingName = (Name)(name.clone());
 250         else
 251             this.linkRemainingName = null;
 252     }
 253 




 187       */
 188     public String getLinkExplanation() {
 189         return this.linkExplanation;
 190     }
 191 
 192     /**
 193       * Sets the explanation associated with the problem encountered
 194       * when resolving a link.
 195       *
 196       * @param msg The possibly null detail string explaining more about the problem
 197       * with resolving a link. If null, it means no detail will be recorded.
 198       * @see #getLinkExplanation
 199       */
 200     public void setLinkExplanation(String msg) {
 201         this.linkExplanation = msg;
 202     }
 203 
 204     /**
 205      * Sets the resolved link name field of this exception.
 206      *<p>
 207      * {@code name} is a composite name. If the intent is to set
 208      * this field using a compound name or string, you must
 209      * "stringify" the compound name, and create a composite
 210      * name with a single component using the string. You can then
 211      * invoke this method using the resulting composite name.
 212      *<p>
 213      * A copy of <code>name</code> is made and stored.
 214      * Subsequent changes to <code>name</code> do not
 215      * affect the copy in this NamingException and vice versa.
 216      *
 217      *
 218      * @param name The name to set resolved link name to. This can be null.
 219      *          If null, it sets the link resolved name field to null.
 220      * @see #getLinkResolvedName
 221      */
 222     public void setLinkResolvedName(Name name) {
 223         if (name != null) {
 224             this.linkResolvedName = (Name)(name.clone());
 225         } else {
 226             this.linkResolvedName = null;
 227         }
 228     }
 229 
 230     /**
 231      * Sets the remaining link name field of this exception.
 232      *<p>
 233      * {@code name} is a composite name. If the intent is to set
 234      * this field using a compound name or string, you must
 235      * "stringify" the compound name, and create a composite
 236      * name with a single component using the string. You can then
 237      * invoke this method using the resulting composite name.
 238      *<p>
 239      * A copy of <code>name</code> is made and stored.
 240      * Subsequent changes to <code>name</code> do not
 241      * affect the copy in this NamingException and vice versa.
 242      *
 243      * @param name The name to set remaining link name to. This can be null.
 244      *  If null, it sets the remaining name field to null.
 245      * @see #getLinkRemainingName
 246      */
 247     public void setLinkRemainingName(Name name) {
 248         if (name != null)
 249             this.linkRemainingName = (Name)(name.clone());
 250         else
 251             this.linkRemainingName = null;
 252     }
 253 


< prev index next >