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

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


   public static final PolicyScopeInterceptor INTERCEPTOR = new PolicyScopeInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractPolicyMetaData policy = (AbstractPolicyMetaData) parent;
      AbstractScopeMetaData scope = (AbstractScopeMetaData) child;
      policy.setScope(scope);
   }
View Full Code Here


    */
   public static final ScopeHandler HANDLER = new ScopeHandler();

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

      return new AbstractScopeMetaData();
   }

   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
   {
      AbstractScopeMetaData scope = (AbstractScopeMetaData)o;
      for (int i = 0; i < attrs.getLength(); ++i)
      {
         String localName = attrs.getLocalName(i);
         if ("level".equals(localName))
            scope.setLevel(attrs.getValue(i));
         else if ("qualifier".equals(localName))
            scope.setQualifier(attrs.getValue(i));
      }
   }
View Full Code Here

      }
   }

   public Object endElement(Object o, QName qName, ElementBinding element)
   {
      AbstractScopeMetaData scopeMetaData = (AbstractScopeMetaData)o;
      String scope = scopeMetaData.getScope();
      if (scope != null && scope.length() > 0)
      {
         if (scope.startsWith("@") == false)
         {
            throw new IllegalArgumentException("<scope/> content must be a fully qualified annotation type name prefixed with '@'");
View Full Code Here

/*    */ {
/* 42 */   public static final ScopeHandler HANDLER = new ScopeHandler();
/*    */
/*    */   public Object startElement(Object parent, QName name, ElementBinding element)
/*    */   {
/* 46 */     return new AbstractScopeMetaData();
/*    */   }
View Full Code Here

/* 46 */     return new AbstractScopeMetaData();
/*    */   }
/*    */
/*    */   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/*    */   {
/* 51 */     AbstractScopeMetaData scope = (AbstractScopeMetaData)o;
/* 52 */     for (int i = 0; i < attrs.getLength(); i++)
/*    */     {
/* 54 */       String localName = attrs.getLocalName(i);
/* 55 */       if ("level".equals(localName))
/* 56 */         scope.setLevel(attrs.getValue(i));
/* 57 */       else if ("qualifier".equals(localName))
/* 58 */         scope.setQualifier(attrs.getValue(i));
/*    */     }
/*    */   }
View Full Code Here

/*    */     }
/*    */   }
/*    */
/*    */   public Object endElement(Object o, QName qName, ElementBinding element)
/*    */   {
/* 64 */     AbstractScopeMetaData scopeMetaData = (AbstractScopeMetaData)o;
/* 65 */     String scope = scopeMetaData.getScope();
/* 66 */     if ((scope != null) && (scope.length() > 0))
/*    */     {
/* 68 */       if (!scope.startsWith("@"))
/*    */       {
/* 70 */         throw new IllegalArgumentException("<scope/> content must be a fully qualified annotation type name prefixed with '@'");
View Full Code Here

/* 38 */   public static final PolicyScopeInterceptor INTERCEPTOR = new PolicyScopeInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 42 */     AbstractPolicyMetaData policy = (AbstractPolicyMetaData)parent;
/* 43 */     AbstractScopeMetaData scope = (AbstractScopeMetaData)child;
/* 44 */     policy.setScope(scope);
/*    */   }
View Full Code Here

TOP

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

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.