Package org.jboss.beans.metadata.plugins.policy

Examples of org.jboss.beans.metadata.plugins.policy.AbstractBindingMetaData


/* 44 */     return new AbstractBindingMetaData();
/*    */   }
/*    */
/*    */   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/*    */   {
/* 49 */     AbstractBindingMetaData binding = (AbstractBindingMetaData)o;
/* 50 */     for (int i = 0; i < attrs.getLength(); i++)
/*    */     {
/* 52 */       String localName = attrs.getLocalName(i);
/* 53 */       if ("name".equals(localName))
/* 54 */         binding.setName(attrs.getValue(i));
/*    */     }
/*    */   }
View Full Code Here


/*    */     }
/*    */   }
/*    */
/*    */   public Object endElement(Object o, QName qName, ElementBinding element)
/*    */   {
/* 60 */     AbstractBindingMetaData binding = (AbstractBindingMetaData)o;
/*    */
/* 62 */     if (binding.getValue() == null) {
/* 63 */       throw new IllegalArgumentException("Binding must have a non-null value:" + binding);
/*    */     }
/* 65 */     if (binding.getName() == null);
/* 70 */     return binding;
/*    */   }
View Full Code Here

/*    */ {
/* 40 */   public static final BindingWildcardHandler WILDCARD = new BindingWildcardHandler();
/*    */
/*    */   public void setParent(Object parent, Object o, QName elementName, ElementBinding element, ElementBinding parentElement)
/*    */   {
/* 44 */     AbstractBindingMetaData binding = (AbstractBindingMetaData)parent;
/* 45 */     if ((o instanceof ValueMetaData))
/* 46 */       binding.setValue((ValueMetaData)o);
/*    */     else
/* 48 */       binding.setValue(new AbstractValueMetaData(o));
/*    */   }
View Full Code Here

/* 41 */   public static final PolicyBindingInterceptor INTERCEPTOR = new PolicyBindingInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 45 */     AbstractPolicyMetaData policy = (AbstractPolicyMetaData)parent;
/* 46 */     AbstractBindingMetaData binding = (AbstractBindingMetaData)child;
/* 47 */     Set bindings = policy.getBindings();
/* 48 */     if (bindings == null)
/*    */     {
/* 50 */       bindings = new HashSet();
/* 51 */       policy.setBindings(bindings);
View Full Code Here

/*    */ {
/* 38 */   public static final BindingCharactersHandler HANDLER = new BindingCharactersHandler();
/*    */
/*    */   public void setValue(QName qName, ElementBinding element, Object owner, Object value)
/*    */   {
/* 42 */     AbstractBindingMetaData binding = (AbstractBindingMetaData)owner;
/* 43 */     StringValueMetaData svmd = (StringValueMetaData)value;
/* 44 */     setStringValue(binding, svmd);
/*    */   }
View Full Code Here

   /** The handler */
   public static final BindingWildcardHandler WILDCARD = new BindingWildcardHandler();

   public void setParent(Object parent, Object o, QName elementName, ElementBinding element, ElementBinding parentElement)
   {
      AbstractBindingMetaData binding = (AbstractBindingMetaData) parent;
      if (o instanceof ValueMetaData)
         binding.setValue((ValueMetaData)o);
      else
         binding.setValue(new AbstractValueMetaData(o));
   }
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.plugins.policy.AbstractBindingMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.