Examples of AttributeInfo


Examples of org.apache.commons.modeler.AttributeInfo

                // process attribute info
                firstN=DomUtil.getChild( mbeanN, "attribute");
                for (Node descN = firstN; descN != null;
                     descN = DomUtil.getNext( descN ))
                {
                    AttributeInfo ci=new AttributeInfo();
                    DomUtil.setAttributes(ci, descN);
                    managed.addAttribute( ci );
                }

            }
View Full Code Here

Examples of org.apache.cxf.javascript.AttributeInfo

                                                              type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
       
        for (XmlSchemaAnnotated thing : attrs) {
            AttributeInfo itemInfo = AttributeInfo.forLocalItem(thing, xmlSchema,
                                                                xmlSchemaCollection,
                                                                prefixAccumulator,
                                                                type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
View Full Code Here

Examples of org.apache.cxf.javascript.AttributeInfo

                                                              type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
       
        for (XmlSchemaAnnotated thing : attrs) {
            AttributeInfo itemInfo = AttributeInfo.forLocalItem(thing, xmlSchema,
                                                                xmlSchemaCollection,
                                                                prefixAccumulator,
                                                                type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
View Full Code Here

Examples of org.apache.cxf.javascript.AttributeInfo

                                                              type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
       
        for (XmlSchemaAnnotated thing : attrs) {
            AttributeInfo itemInfo = AttributeInfo.forLocalItem(thing, xmlSchema,
                                                                xmlSchemaCollection,
                                                                prefixAccumulator,
                                                                type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
View Full Code Here

Examples of org.apache.cxf.javascript.AttributeInfo

                                                              type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
       
        for (XmlSchemaAnnotated thing : attrs) {
            AttributeInfo itemInfo = AttributeInfo.forLocalItem(thing, schemaInfo.getSchema(),
                                                                xmlSchemaCollection,
                                                                prefixAccumulator,
                                                                type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }
View Full Code Here

Examples of org.apache.cxf.javascript.AttributeInfo

                                                              prefixAccumulator, type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }

        for (XmlSchemaAnnotated thing : attrs) {
            AttributeInfo itemInfo = AttributeInfo.forLocalItem(thing, xmlSchema, xmlSchemaCollection,
                                                                prefixAccumulator, type.getQName());
            constructOneItem(type, elementPrefix, typeObjectName, itemInfo);
        }

        code.append("}\n\n");
View Full Code Here

Examples of org.apache.tomcat.util.modeler.AttributeInfo

                // process attribute info
                firstN=DomUtil.getChild( mbeanN, "attribute");
                for (Node descN = firstN; descN != null;
                     descN = DomUtil.getNext( descN ))
                {
                    AttributeInfo ci=new AttributeInfo();
                    DomUtil.setAttributes(ci, descN);
                    managed.addAttribute( ci );
                }

            }
View Full Code Here

Examples of org.apache.tomcat.util.modeler.AttributeInfo

        try {

            Enumeration en=attMap.keys();
            while( en.hasMoreElements() ) {
                String name=(String)en.nextElement();
                AttributeInfo ai=new AttributeInfo();
                ai.setName( name );
                Method gm=(Method)getAttMap.get(name);
                if( gm!=null ) {
                    //ai.setGetMethodObj( gm );
                    ai.setGetMethod( gm.getName());
                    Class t=gm.getReturnType();
                    if( t!=null )
                        ai.setType( t.getName() );
                }
                Method sm=(Method)setAttMap.get(name);
                if( sm!=null ) {
                    //ai.setSetMethodObj(sm);
                    Class t=sm.getParameterTypes()[0];
                    if( t!=null )
                        ai.setType( t.getName());
                    ai.setSetMethod( sm.getName());
                }
                ai.setDescription("Introspected attribute " + name);
                if( log.isDebugEnabled()) log.debug("Introspected attribute " +
                        name + " " + gm + " " + sm);
                if( gm==null )
                    ai.setReadable(false);
                if( sm==null )
                    ai.setWriteable(false);
                if( sm!=null || gm!=null )
                    mbean.addAttribute(ai);
            }

            en=invokeAttMap.keys();
View Full Code Here

Examples of org.geomajas.configuration.AttributeInfo

    }
  }

  public List<Attribute<?>> getAttributes(String attributeName, Filter filter) throws LayerException {
    log.debug("creating iterator for attribute {} and filter: {}", attributeName, filter);
    AttributeInfo attributeInfo = null;
    for (AttributeInfo info : getFeatureInfo().getAttributes()) {
      if (info.getName().equals(attributeName)) {
        attributeInfo = info;
        break;
      }
View Full Code Here

Examples of org.geomajas.configuration.AttributeInfo

  }

  private Comparator<? super InternalFeature> createComparator(VectorLayer layer, final String attributeName,
      final FeatureOrder order) throws RestException {
    List<AttributeInfo> attributes = layer.getLayerInfo().getFeatureInfo().getAttributes();
    AttributeInfo info = null;
    for (AttributeInfo attributeInfo : attributes) {
      // be tolerant on casing
      if (attributeInfo.getName().equalsIgnoreCase(attributeName)) {
        info = attributeInfo;
      }
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.