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

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


         ValueMetaData value = (ValueMetaData) child;
         valueMetaData.setValue(value);
      }
      else if (parent instanceof AbstractBindingMetaData)
      {
         AbstractBindingMetaData valueMetaData = (AbstractBindingMetaData) parent;
         ValueMetaData value = (ValueMetaData) child;
         valueMetaData.setValue(value);
      }
      else
      {
         AbstractValueMetaData valueMetaData = (AbstractValueMetaData) parent;
         ValueMetaData value = (ValueMetaData) child;
         valueMetaData.setValue(value);
      }
   }
View Full Code Here


   /** The binding handler */
   public static final BindingHandler HANDLER = new BindingHandler();

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      return new AbstractBindingMetaData();
   }
View Full Code Here

      return new AbstractBindingMetaData();
   }

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

      }
   }

   public Object endElement(Object o, QName qName, ElementBinding element)
   {
      AbstractBindingMetaData binding = (AbstractBindingMetaData)o;

      if (binding.getValue() == null)
         throw new IllegalArgumentException("Binding must have a non-null value:" + binding);

      if (binding.getName() == null)
      {
         // TODO name aware - introduce NameAware interface
      }

      return binding;
View Full Code Here

   /** The interceptor */
   public static final BindingCharactersHandler HANDLER = new BindingCharactersHandler();

   public void setValue(QName qName, ElementBinding element, Object owner, Object value)
   {
      AbstractBindingMetaData binding = (AbstractBindingMetaData) owner;
      StringValueMetaData svmd = (StringValueMetaData) value;
      setStringValue(binding, svmd);
   }
View Full Code Here

   public static final PolicyBindingInterceptor INTERCEPTOR = new PolicyBindingInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractPolicyMetaData policy = (AbstractPolicyMetaData) parent;
      AbstractBindingMetaData binding = (AbstractBindingMetaData) child;
      Set<BindingMetaData> bindings = policy.getBindings();
      if (bindings == null)
      {
         bindings = new HashSet<BindingMetaData>();
         policy.setBindings(bindings);
View Full Code Here

   /** The binding handler */
   public static final BindingHandler HANDLER = new BindingHandler();

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      return new AbstractBindingMetaData();
   }
View Full Code Here

      return new AbstractBindingMetaData();
   }

   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
   {
      AbstractBindingMetaData binding = (AbstractBindingMetaData)o;
      for (int i = 0; i < attrs.getLength(); ++i)
      {
         String localName = attrs.getLocalName(i);
         if ("name".equals(localName))
            binding.setName(attrs.getValue(i));
         else if ("class".equals(localName))
            binding.setType(attrs.getValue(i));
      }
   }
View Full Code Here

      }
   }

   public Object endElement(Object o, QName qName, ElementBinding element)
   {
      AbstractBindingMetaData binding = (AbstractBindingMetaData)o;

      if (binding.getValue() == null)
         throw new IllegalArgumentException("Binding must have a non-null value:" + binding);

      if (binding.getName() == null)
      {
         // TODO name aware - introduce NameAware interface
      }

      return binding;
View Full Code Here

/*    */ {
/* 40 */   public static final BindingHandler HANDLER = new BindingHandler();
/*    */
/*    */   public Object startElement(Object parent, QName name, ElementBinding element)
/*    */   {
/* 44 */     return new AbstractBindingMetaData();
/*    */   }
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.