org.symbian.tools.mtw.core/src/org/symbian/tools/tmw/core/internal/runtimes/MobileWebRuntime.java
changeset 461 7a8f9fa8d278
equal deleted inserted replaced
460:c0bff5ed874c 461:7a8f9fa8d278
       
     1 /**
       
     2  * Copyright (c) 2010 Symbian Foundation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the License "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Symbian Foundation - initial contribution.
       
    11  * Contributors:
       
    12  * Description:
       
    13  * Overview:
       
    14  * Details:
       
    15  * Platforms/Drives/Compatibility:
       
    16  * Assumptions/Requirement/Pre-requisites:
       
    17  * Failures and causes:
       
    18  */
       
    19 package org.symbian.tools.tmw.core.internal.runtimes;
       
    20 
       
    21 import org.eclipse.core.runtime.IConfigurationElement;
       
    22 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntime;
       
    23 
       
    24 public final class MobileWebRuntime implements IMobileWebRuntime {
       
    25     private final IConfigurationElement element;
       
    26 
       
    27     public MobileWebRuntime(IConfigurationElement element) {
       
    28         this.element = element;
       
    29     }
       
    30 
       
    31     public String getId() {
       
    32         return element.getAttribute("component-id");
       
    33     }
       
    34 
       
    35     public String getVersion() {
       
    36         return element.getAttribute("component-version");
       
    37     }
       
    38 
       
    39     public String getName() {
       
    40         return element.getAttribute("name");
       
    41     }
       
    42 
       
    43     public IConfigurationElement[] getComponentElements() {
       
    44         return element.getChildren("runtime-component");
       
    45     }
       
    46 
       
    47 }