/*     */   protected RIFCSElement(Node n, String name)
/*     */     throws RIFCSException
/*     */   {
/*  56 */     if (n == null)
/*     */     {
/*  58 */       throw new RIFCSException("Null Node passed to constructor");
/*     */     }
/*     */ 
/*  61 */     if ((n instanceof Element))
/*     */     {
/*  63 */       if (!n.getNodeName().endsWith(name))
/*     */       {
/*  65 */         throw new RIFCSException("Mismatch tag name. Node tag is: " + n.getNodeName() + ", expected: " + name);
/*     */       }
/*     */     }
/*     */     else
/*     */     {
/*  70 */       throw new RIFCSException("Node of type Element required in constructor");
/*     */     }
/*     */ 
/*  73 */     this.e = ((Element)n);
/*     */   }