FileDocCategorySizeDatePackage
DocumentDescriptor.javaAPI DocAndroid 1.5 API2168Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.descriptors

DocumentDescriptor

public class DocumentDescriptor extends ElementDescriptor
{@link DocumentDescriptor} describes the properties expected for an XML document node. Compared to ElementDescriptor, {@link DocumentDescriptor} does not have XML name nor UI name, tooltip, SDK url and attributes list.

It has a children list which represent all the possible roots of the document.

The document nodes are "mandatory", meaning the UI node is never deleted and it may lack an actual XML node attached.

Fields Summary
Constructors Summary
public DocumentDescriptor(String xml_name, ElementDescriptor[] children)
Constructs a new {@link DocumentDescriptor} based on its XML name and children list. The UI name is build by capitalizing the XML name. The UI nodes will be non-mandatory.

The XML name is never shown in the UI directly. It is however used when an icon needs to be found for the node.

param
xml_name The XML element node name. Case sensitive.
param
children The list of allowed children. Can be null or empty.

        super(xml_name, children, true /* mandatory */);
    
Methods Summary
public com.android.ide.eclipse.editors.uimodel.UiElementNodecreateUiNode()

return
A new {@link UiElementNode} linked to this descriptor.

        return new UiDocumentNode(this);