Package org.codehaus.enunciate.util

Examples of org.codehaus.enunciate.util.MapType


      return maxOccurs;
    }

    public TypeMirror getType() {
      TypeMirror propertyType = property.getPropertyType();
      MapType mapType = MapTypeUtil.findMapType(propertyType);
      if (mapType != null) {
        propertyType = mapType;
      }
      return propertyType;
    }
View Full Code Here



  @Override
  public TypeMirror getReturnType() {
    TypeMirror type = super.getReturnType();
    MapType mapType = MapTypeUtil.findMapType(type);
    if (mapType != null) {
      type = mapType;
    }
    return type;
  }
View Full Code Here

    public void visitEnumType(EnumType arg0) {
      // no-op
    }

    public void visitInterfaceType(InterfaceType interfaceType) {
      MapType mapType = MapTypeUtil.findMapType(interfaceType);
      if (mapType != null) {
        mapType.getKeyType().accept(this);
        mapType.getValueType().accept(this);
      }
      else if (((DecoratedInterfaceType) TypeMirrorDecorator.decorate(interfaceType)).isCollection()) {
        Collection<TypeMirror> typeArgs = interfaceType.getActualTypeArguments();
        if (typeArgs != null) {
          for (TypeMirror typeArg : typeArgs) {
View Full Code Here

  }

  @Override
  public TypeMirror getType() {
    TypeMirror type = super.getType();
    MapType mapType = MapTypeUtil.findMapType(type);
    if (mapType != null) {
      type = mapType;
    }
    return type;
  }
View Full Code Here

    this.xmlType = null;
    this.errorMessage = "Unknown xml type: " + referenceType;
  }

  public void visitDeclaredType(DeclaredType declaredType) {
    MapType mapType = MapTypeUtil.findMapType(declaredType);
    if (mapType != null) {
      setMapXmlType(mapType);
    }
    else {
      this.xmlType = null;
View Full Code Here

      this.errorMessage = "Unknown xml type: " + declaredType;
    }
  }

  public void visitClassType(ClassType classType) {
    MapType mapType = MapTypeUtil.findMapType(classType);
    if (mapType != null) {
      setMapXmlType(mapType);
    }
    else {
      XmlType xmlType = null;
View Full Code Here

    AdapterType adapterType = AdapterUtil.findAdapterType(interfaceType.getDeclaration());
    if (adapterType != null) {
      adapterType.getAdaptingType().accept(this);
    }
    else {
      MapType mapType = MapTypeUtil.findMapType(interfaceType);
      if (mapType != null) {
        setMapXmlType(mapType);
      }
      else if (isInCollection) {
        this.xmlType = KnownXmlType.ANY_TYPE;
View Full Code Here

    TypeMirror bareCollection = JAXBUtil.getNormalizedCollection(accessorType);
    if (bareCollection != null) {
      accessorType = bareCollection;
    }
    else {
      MapType mapType = MapTypeUtil.findMapType(accessorType);
      if (mapType != null) {
        accessorType = mapType;
      }
    }
View Full Code Here

   * @param imports The imports.
   */
  protected void addComponentTypes(TypeMirror type, Set<String> imports) throws TemplateModelException {
    if (includeComponentTypes) {
      if (type instanceof MapType) {
        MapType mapType = ((MapType) type);
        imports.add(classnameFor.convert(mapType.getKeyType()));
        imports.add(classnameFor.convert(mapType.getValueType()));
      }
      else if (((DecoratedTypeMirror) type).isCollection()) {
        DeclaredType declaredType = (DeclaredType) type;
        Iterator<TypeMirror> actualTypeArguments = declaredType.getActualTypeArguments().iterator();
        if (actualTypeArguments.hasNext()) {
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.util.MapType

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.