/*     */   protected ROElement(Node n)
/*     */     throws RIFCSException
/*     */   {
/*  55 */     if (n == null)
/*     */     {
/*  57 */       throw new RIFCSException("Null Node passed to constructor");
/*     */     }
/*     */ 
/*  60 */     if (!(n instanceof Element))
/*     */     {
/*  62 */       throw new RIFCSException("Node of type Element required in constructor");
/*     */     }
/*     */ 
/*  65 */     String name = n.getNodeName();
/*     */ 
/*  67 */     if ((!name.equals("activity")) && 
/*  68 */       (!name.equals("collection")) && 
/*  69 */       (!name.equals("party")) && 
/*  70 */       (!name.equals("service")))
/*     */     {
/*  72 */       throw new RIFCSException("Invalid regsitry object type: " + name);
/*     */     }
/*     */ 
/*  76 */     this.e = ((Element)n);
/*     */   }