Examples of SourceType


Examples of org.apache.tuscany.sca.demos.aggregator.types.SourceType

             
        try {
            ConfigType alertSourceConfig = alertsSources.getAlertSources(id);
           
            for (Object source : alertSourceConfig.getSource()){
                SourceType sourceType = (SourceType)source;
               
                AlertsType alerts = null;
               
                if ( sourceType.getFeedType().equals("rss")){
                    alerts = rssChecker.getNewAlerts(sourceType.getFeedAddress(),
                                                     sourceType.getLastChecked());
                } else {
                   
                }
               
                // extend return list with any alerts we found
                for( Object alert : alerts.getAlert() ){        

                    // set the id on the alert so we know which source it
                    // came from
                    ((AlertType)alert).setSourceId(sourceType.getId());
                   
                    // convert from SDO to POJO so that the
                    // JSONRPC binding will work. It can't currently
                    // handle SDOs
                    AlertType newAlert = new AlertTypeNonSDOImpl();
   
                    newAlert.setSourceId(((AlertType)alert).getSourceId());
                    newAlert.setTitle(((AlertType)alert).getTitle());
                    newAlert.setSummary(((AlertType)alert).getSummary());                   
                    newAlert.setAddress(((AlertType)alert).getAddress());
                    newAlert.setDate(((AlertType)alert).getDate());
                    newAlert.setId(((AlertType)alert).getId());
                    newAlert.setUnread(((AlertType)alert).isUnread());               
                   
                    returnAlertList.add(newAlert);
                }
               
                // update the time last checked for this source
                sourceType.setLastChecked(nowString);
                //alertsSources.updateAlertSource(sourceType);
            }
        } catch(Exception ex) {
            System.err.println("Exception " + ex.toString());
        }
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.SourceType

     * @return the alert source
     */
    public SourceType getAlertSource (String id)
    {          
        System.err.println("getAlertSource(" + id + ")");
        SourceType alertSource = null;
       
        for (Object source : alertSources.getSource()) {
            if ( ((SourceType)source).getId().equals(id)) {
                alertSource = (SourceType)source;
            }
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.SourceType

             
        try {
            ConfigType alertSourceConfig = alertsSources.getAlertSources(id);
           
            for (Object source : alertSourceConfig.getSource()){
                SourceType sourceType = (SourceType)source;
               
                AlertsType alerts = null;
               
                if ( sourceType.getFeedType().equals("rss")){
                    alerts = rssChecker.getNewAlerts(sourceType.getFeedAddress(),
                                                     sourceType.getLastChecked());
                } else {
                   
                }
               
                // extend return list with any alerts we found
                for( Object alert : alerts.getAlert() ){        

                    // set the id on the alert so we know which source it
                    // came from
                    ((AlertType)alert).setSourceId(sourceType.getId());
                   
                    // convert from SDO to POJO so that the
                    // JSONRPC binding will work. It can't currently
                    // handle SDOs
                    AlertType newAlert = new AlertTypeNonSDOImpl();
   
                    newAlert.setSourceId(((AlertType)alert).getSourceId());
                    newAlert.setTitle(((AlertType)alert).getTitle());
                    newAlert.setSummary(((AlertType)alert).getSummary());                   
                    newAlert.setAddress(((AlertType)alert).getAddress());
                    newAlert.setDate(((AlertType)alert).getDate());
                    newAlert.setId(((AlertType)alert).getId());
                    newAlert.setUnread(((AlertType)alert).isUnread());               
                   
                    returnAlertList.add(newAlert);
                }
               
                // update the time last checked for this source
                sourceType.setLastChecked(nowString);
                //alertsSources.updateAlertSource(sourceType);
            }
        } catch(Exception ex) {
            System.err.println("Exception " + ex.toString());
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.SourceType

        parent = parent.getEnclosingType();
      }
      // compute parse tree for this most outer type
      CompilationResult result = new CompilationResult(outerType.getFileName(), 1, 1, this.compilerOptions.maxProblemsPerUnit);
      if (!(sourceType instanceof SourceTypeElementInfo)) return;
      SourceType typeHandle = (SourceType) ((SourceTypeElementInfo)sourceType).getHandle();
      int flags = SourceTypeConverter.FIELD_AND_METHOD | SourceTypeConverter.MEMBER_TYPE;
      if (typeHandle.isAnonymous() || typeHandle.isLocal())
        flags |= SourceTypeConverter.LOCAL_TYPE;
      CompilationUnitDeclaration parsedUnit =
        SourceTypeConverter.buildCompilationUnit(
            topLevelTypes,
            flags,
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.SourceType

    try {
      // TypeConverter is used instead of SourceTypeConverter because the type
      // to convert can be a binary type or a source type
      TypeDeclaration typeDeclaration = null;
      if (type instanceof SourceType) {
        SourceType sourceType = (SourceType) type;
        ISourceType info = (ISourceType) sourceType.getElementInfo();
        compilationUnit = SourceTypeConverter.buildCompilationUnit(
          new ISourceType[] {info},//sourceTypes[0] is always toplevel here
          SourceTypeConverter.FIELD_AND_METHOD // need field and methods
          | SourceTypeConverter.MEMBER_TYPE, // need member types
          // no need for field initialization
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.xml.SourceType

        register(soapTM, Calendar.class, XSD_DATETIME, new CalendarType());
        register(soapTM, byte[].class, XSD_BASE64, new Base64Type());
        register(soapTM, BigDecimal.class, XSD_DECIMAL, new BigDecimalType());
        register(soapTM, URI.class, XSD_URI, new URIType());
        register(soapTM, Document.class, XSD_ANY, new DocumentType());
        register(soapTM, Source.class, XSD_ANY, new SourceType());
        register(soapTM, XMLStreamReader.class, XSD_ANY, new XMLStreamReaderType());
        register(soapTM, Element.class, XSD_ANY, new JDOMElementType());
        register(soapTM, org.jdom.Document.class, XSD_ANY, new JDOMDocumentType());
        register(soapTM, Object.class, XSD_ANY, new ObjectType());
        register(soapTM, DataSource.class, XSD_BASE64, new DataSourceType());
View Full Code Here

Examples of org.eclipse.dltk.internal.core.SourceType

    try {

      IModelElement elem = sourceModule.getElementAt(offset);

      if (elem instanceof SourceType) {
        SourceType type = (SourceType) elem;

        if (type.getSuperClasses().length > 0) {
          return true;
        }

      }
View Full Code Here

Examples of org.eclipse.dltk.internal.core.SourceType

    if (element == null || !(element instanceof SourceType)) {
      return;
    }

    IDLTKSearchScope scope = SearchEngine.createSearchScope(module.getScriptProject());
    SourceType type = (SourceType) element;
    SourceRange range = getReplacementRange(context);
    String prefix = context.getPrefix();

    IType[] projectTypes = PhpModelAccess.getDefault().findTypes(type.getElementName(), MatchRule.EXACT, 0, 0, scope, null);

    if (projectTypes.length != 1) {
      return;
    }

    IType currentType = projectTypes[0];
    ITypeHierarchy hierarchy = this.getCompanion().getSuperTypeHierarchy(type, new NullProgressMonitor());
    IType[] superTypes = hierarchy.getAllSupertypes(currentType);

    List<String> reported = new ArrayList<String>();

    for (IType superType : superTypes) {

      for (IMethod method : superType.getMethods()) {

        IMethod moduleMethod = type.getMethod(method.getElementName());

        try {
          // throws a ModelException for methods not declared inside this sourcemodule,
          // hence when it passes we can safely continue
          moduleMethod.getUnderlyingResource();
View Full Code Here

Examples of org.eclipse.jdt.internal.core.SourceType

    try {
      // TypeConverter is used instead of SourceTypeConverter because the type
      // to convert can be a binary type or a source type
      TypeDeclaration typeDeclaration = null;
      if (type instanceof SourceType) {
        SourceType sourceType = (SourceType) type;
        ISourceType info = (ISourceType) sourceType.getElementInfo();
        compilationUnit = SourceTypeConverter.buildCompilationUnit(
          new ISourceType[] {info},//sourceTypes[0] is always toplevel here
          SourceTypeConverter.FIELD_AND_METHOD // need field and methods
          | SourceTypeConverter.MEMBER_TYPE, // need member types
          // no need for field initialization
View Full Code Here

Examples of org.eclipse.jdt.internal.core.SourceType

        final ICompilationUnit compUnit = JavaCore.createCompilationUnitFrom(javaFile);
        try {
          final IType[] types = compUnit.getTypes();
          if (types.length > 0) {
            final SourceType type = (SourceType) types[0];
            final boolean isWicketComponent = TypeHelper.isWicketJavaElement(type);
            if (isWicketComponent) {
              this.compilationUnit = compUnit;
              return isWicketComponent;
            }
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.