FileDocCategorySizeDatePackage
ManifestElementDescriptor.javaAPI DocAndroid 1.5 API4030Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.manifest.descriptors

ManifestElementDescriptor

public class ManifestElementDescriptor extends com.android.ide.eclipse.editors.descriptors.ElementDescriptor
{@link ManifestElementDescriptor} describes an XML element node, with its element name, its possible attributes, its possible child elements but also its display name and tooltip. This {@link ElementDescriptor} is specialized to create {@link UiManifestElementNode} UI nodes.

Fields Summary
Constructors Summary
public ManifestElementDescriptor(String xml_name, String ui_name, String tooltip, String sdk_url, com.android.ide.eclipse.editors.descriptors.AttributeDescriptor[] attributes, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children, boolean mandatory)
Constructs a new {@link ManifestElementDescriptor}.

param
xml_name The XML element node name. Case sensitive.
param
ui_name The XML element name for the user interface, typically capitalized.
param
tooltip An optional tooltip. Can be null or empty.
param
sdk_url An optional SKD URL. Can be null or empty.
param
attributes The list of allowed attributes. Can be null or empty.
param
children The list of allowed children. Can be null or empty.
param
mandatory Whether this node must always exist (even for empty models).

        super(xml_name, ui_name, tooltip, sdk_url, attributes, children, mandatory);
    
public ManifestElementDescriptor(String xml_name, String ui_name, String tooltip, String sdk_url, com.android.ide.eclipse.editors.descriptors.AttributeDescriptor[] attributes, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children)
Constructs a new {@link ManifestElementDescriptor}.

param
xml_name The XML element node name. Case sensitive.
param
ui_name The XML element name for the user interface, typically capitalized.
param
tooltip An optional tooltip. Can be null or empty.
param
sdk_url An optional SKD URL. Can be null or empty.
param
attributes The list of allowed attributes. Can be null or empty.
param
children The list of allowed children. Can be null or empty.

        super(xml_name, ui_name, tooltip, sdk_url, attributes, children, false);
    
public ManifestElementDescriptor(String xml_name, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children)
This is a shortcut for ManifestElementDescriptor(xml_name, xml_name.capitalize(), null, null, null, children). This constructor is mostly used for unit tests.

param
xml_name The XML element node name. Case sensitive.

        super(xml_name, children);
    
public ManifestElementDescriptor(String xml_name)
This is a shortcut for ManifestElementDescriptor(xml_name, xml_name.capitalize(), null, null, null, null). This constructor is mostly used for unit tests.

param
xml_name The XML element node name. Case sensitive.

        super(xml_name, null);
    
Methods Summary
public com.android.ide.eclipse.editors.uimodel.UiElementNodecreateUiNode()

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

        return new UiManifestElementNode(this);