Examples of type()


Examples of org.eweb4j.util.xml.tag.XmlTag.type()

        }
        Annotation[] annotation = f.getAnnotations();
        if (annotation != null && annotation.length > 0) {
          for (Annotation anno : annotation) {
            XmlTag tag = (XmlTag) anno;
            String type = tag.type();
            String value = tag.value();
            boolean canWrite = tag.canWrite();
            if (canWrite) {
              if (XmlTagType.classType.equals(type)) {
                // 属性为class,进入递归
View Full Code Here

Examples of org.exoplatform.container.spi.DefinitionByName.type()

               if (!definition.named().equals(componentKey))
               {
                  return false;
               }
               containers = definition.target();
               type = definition.type();
            }
            else
            {
               DefinitionByQualifier definition = componentType.getAnnotation(DefinitionByQualifier.class);
               if (!definition.qualifier().equals(componentKey))
View Full Code Here

Examples of org.exoplatform.container.spi.DefinitionByQualifier.type()

               if (!definition.qualifier().equals(componentKey))
               {
                  return false;
               }
               containers = definition.target();
               type = definition.type();
            }
            if (!accepts(containers))
            {
               // The class of the current container is not part of the allowed classes.
               return false;
View Full Code Here

Examples of org.exoplatform.container.spi.DefinitionByType.type()

            Class<? extends ExoContainer>[] containers;
            if (definitionType == DefinitionType.TYPE)
            {
               DefinitionByType definition = componentType.getAnnotation(DefinitionByType.class);
               containers = definition.target();
               type = definition.type();
            }
            else if (definitionType == DefinitionType.NAME)
            {
               DefinitionByName definition = componentType.getAnnotation(DefinitionByName.class);
               if (!definition.named().equals(componentKey))
View Full Code Here

Examples of org.exoplatform.services.database.annotation.TableField.type()

      appendId(builder);
      TableField[] fields = table.field();
      for (int i = 0; i < fields.length; i++)
      {
         TableField field = fields[i];
         String fieldType = field.type();
         if ("string".equals(fieldType))
         {
            appendStringField(field, builder);
         }
         else if ("int".equals(fieldType))
View Full Code Here

Examples of org.flowforwarding.warp.protocol.ofp.avro.OFMessage.type()

            builder = new org.flowforwarding.warp.protocol.ofp.avro.OFMessage.OFMessageBuilder(in.toArray());           
            OFMessage inMsg = builder.value(in.toArray()).build();

            if ((provider != null) && (inMsg != null)) {
                if (inMsg.type().equals("OFPT_HELLO")) {
                  log.info ("IN: Hello");
                    swRef.setVersion(builder.version());
//                    getSender().tell(TcpMessage.write(ByteString.fromArray(builder.type("ofp_hello").set("header.xid", "0xabba").build().binary())), getSelf());
                    OFMessage helloMsg = builder.type("ofp_hello").build();
                    byte[] v = {127,127,127,127};
View Full Code Here

Examples of org.glassfish.admin.amx.annotation.ChildGetter.type()

    {
        String type = null;
        final ChildGetter getter = m.getAnnotation(ChildGetter.class);
        if ( getter != null )
        {
            type = getter.type();
        }
       
        if ( type == null || type.length() == 0 )
        {
            String temp = m.getName();
View Full Code Here

Examples of org.glassfish.admin.amx.config.AMXConfigProxy.type()

            return;
        }
        final AMXConfigProxy config = proxy.as(AMXConfigProxy.class);

        // All AMXConfig must be descendants of Domain
        if ( ! config.type().equals( "domain" ) )   // hard-coded type, we can't import Domain.class here
        {
            // verify that all its ancestors are also AMXConfig
            // Do a quick check, ultimately if all AMXConfig have an AMXConfig as a parent,
            // then they all have DomainConfig as a parent.
            if ( ! AMXConfigProxy.class.isAssignableFrom(config.parent().extra().genericInterface() ) )
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXMBeanMetadata.type()

        AMXMBeanMetadata meta = null;
        final Object typeField = ClassUtil.getFieldValue(intf, TYPE_FIELD);
        if (typeField instanceof String) {
            type = (String) typeField;
        } else if ((meta = intf.getAnnotation(AMXMBeanMetadata.class)) != null) {
            final String typeValue = meta.type();

            if (typeValue.equals(AMXMBeanMetadata.NULL) || typeValue.length() == 0) {
                type = Util.typeFromName(intf.getName());
            } else {
                type = typeValue;
View Full Code Here

Examples of org.glassfish.admin.amx.core.PathnameParser.type()

        final Set<ObjectName> s = getMBeanServer().queryNames(pattern, null);

        //cdebug( "resolvePath: " + path + " = query for parent path: " + pattern + " yields children: " + s.size() );

        ObjectName objectName = null;
        final String type = parser.type();
        final String name = parser.name();
        // find the matching child
        for (final ObjectName child : s) {
            if (type.equals(Util.getTypeProp(child))) {
                final String nameProp = Util.getNameProp(child);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.