Examples of ITSourceKind


Examples of com.jitcaforwin.basic.api.enums.ITSourceKind

   * @throws JitcaException
   */
  public CDCollectionImpl(IiTunes iTunes, IITSourceCollection itSources) throws JitcaException{
    this();
    for(int i = 1; i <= itSources.getCount(); i++){
      ITSourceKind sourceKind = itSources.item(i).getKind();
      if (sourceKind.is(ITSourceKind.AudioCD()) || sourceKind.is(ITSourceKind.MP3CD())){
        CD cd = CDImpl.create(this.lazy, iTunes, itSources.item(i));
        this.add(cd);
      }
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.enums.ITSourceKind

  }

  public static IITSource newIITSource(DispatchObject o) {
    try {
      ITSourceImpl source = new ITSourceImpl(o);
      ITSourceKind sourceKind = source.getKind();

      if (sourceKind.is(ITSourceKind.IPod())) {
        return new ITIPodSourceImpl(o);
      } else {
        return source;
      }
    } catch (DispatchObjectNullException e) {
View Full Code Here

Examples of com.jitcaforwin.basic.api.enums.ITSourceKind

  }

  public ITSourceKind getKind() throws SourceDeletedException {
    try {
      return new ITSourceKind(this.iTunesCom.getPropertyAsEnum("Kind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.enums.ITSourceKind

   * @throws JitcaException
   */
  public CDCollection(IiTunes iTunes, IITSourceCollection itSources) throws JitcaException{
    this();
    for(int i = 1; i <= itSources.getCount(); i++){
      ITSourceKind sourceKind = itSources.item(i).getKind();
      if (sourceKind.is(ITSourceKind.AudioCD()) || sourceKind.is(ITSourceKind.MP3CD())){
        CD cd = CDImpl.create(this.lazy, iTunes, itSources.item(i));
        this.add(cd);
      }
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.enums.ITSourceKind

  }
 
  public static IITSource newIITSource(DispatchObject o) throws JitcaGeneralException{
    try{
      ITSourceImpl source = new ITSourceImpl(o);
      ITSourceKind sourceKind = source.getKind();
     
      if (sourceKind.is(ITSourceKind.IPod())){
        return new ITIPodSourceImpl(o);
      } else {
        return source;
      }
    } catch(DispatchObjectNullException e){
View Full Code Here

Examples of com.jitcaforwin.basic.enums.ITSourceKind

    }
   
  }

  public ITSourceKind getKind() throws JitcaGeneralException {
    return new ITSourceKind(this.iTunesCom.getPropertyAsEnum("Kind"));
  }
View Full Code Here

Examples of com.jitcaforwin.basic.enums.ITSourceKind

  }

  public static IITSource newIITSource(DispatchObject o) {
    try {
      ITSourceImpl source = new ITSourceImpl(o);
      ITSourceKind sourceKind = source.getKind();

      if (sourceKind.is(ITSourceKind.IPod())) {
        return new ITIPodSourceImpl(o);
      } else {
        return source;
      }
    } catch (DispatchObjectNullException e) {
View Full Code Here

Examples of com.jitcaforwin.basic.enums.ITSourceKind

  }

  public ITSourceKind getKind() throws SourceDeletedException {
    try {
      return new ITSourceKind(this.iTunesCom.getPropertyAsEnum("Kind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
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.