Home | History | Annotate | Download | only in descriptors
      1 /*
      2  * Copyright (C) 2010 The Android Open Source Project
      3  *
      4  * Licensed under the Eclipse Public License, Version 1.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.eclipse.org/org/documents/epl-v10.php
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.ide.eclipse.adt.internal.editors.descriptors;
     18 
     19 import com.android.ide.eclipse.adt.internal.editors.values.uimodel.UiItemElementNode;
     20 
     21 /**
     22  * {@link UiItemElementNode} is the main class that creates the UI Model hierarchy based
     23  * on an XML DOM hierarchy, matching XML names to the {@link ElementDescriptor} names.
     24  * <p/>
     25  * This interface declares a provider that can provide an {@link ElementDescriptor}
     26  * for an unknown XML local name.
     27  */
     28 public interface IUnknownDescriptorProvider {
     29 
     30     /**
     31      * Returns an instance of {@link ElementDescriptor} matching the given XML Local Name.
     32      *
     33      * @param xmlLocalName The XML local name.
     34      * @return A new or existing {@link ElementDescriptor} or derived instance. Must not be null.
     35      */
     36     ElementDescriptor getDescriptor(String xmlLocalName);
     37 
     38 }
     39