Package com.google.feedserver.metadata

Examples of com.google.feedserver.metadata.TypeInfo


  private static List<ColumnDescription> getColumnDescriptionsForProperty(
      EntityInfo entityInfo,
      PropertyInfo property,
      String prefix) throws FeedServerAdapterException {
    List<ColumnDescription> result = new ArrayList<ColumnDescription>();
    TypeInfo type = entityInfo.getType(property.getTypeName());
    if (GVizTypeConverter.isSimpleType(type) || GVizTypeConverter.isKnownType(type)) {
      result.add(getColumnDescriptionForSimpleType(property, prefix));     
    } else {
      for (PropertyInfo propertyInfo : type.getProperties()) {
        result.addAll(getColumnDescriptionsForProperty(
            entityInfo, propertyInfo, prefix + property.getName()));
      }
    }
    return result;
View Full Code Here


      // Mark this type as visited.
      visitedTypes.add(type.getName());

      // Check if any of the sub    types are recursive or already visited.
      for (PropertyInfo property : type.getProperties()) {
        TypeInfo subType = entityInfo.getType(property.getTypeName());
        if (subType == null) {
          continue;
        }
        if (visitedTypes.contains(subType.getName())
            || isRecursiveType(entityInfo, subType, visitedTypes)) {
          return true;
        }
      }
      return false;
View Full Code Here

TOP

Related Classes of com.google.feedserver.metadata.TypeInfo

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.