EGF Engine
Release 0.1.0

org.eclipse.egf.common.descriptor
Class GenericDescriptor

java.lang.Object
  extended by org.eclipse.egf.common.descriptor.GenericDescriptor
All Implemented Interfaces:
IDescriptor
Direct Known Subclasses:
EmfExtensionDescriptor

public class GenericDescriptor
extends Object
implements IDescriptor

Generic implementation of the IDescriptor object.


Constructor Summary
GenericDescriptor()
          Constructor.
 
Method Summary
 void addChild(IDescriptor descriptor_p)
          Add a child descriptor.
 void addChildren(List<? extends IDescriptor> descriptors_p)
          Add all given children.
 List<IDescriptor> getChildren()
          Get children descriptors, if any.
 IDescriptor getParent()
          Get parent descriptor, if it was set by the reading algorithm.
 Object getValue(String propertyName_p)
          Return the value set for the specified property name.
 void setParent(IDescriptor parent_p)
          Set parent descriptor.
 void setValue(String propertyName_p, Object value_p)
          Set the specified value for the given property name in this descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDescriptor

public GenericDescriptor()
Constructor.

Method Detail

getValue

public Object getValue(String propertyName_p)
Description copied from interface: IDescriptor
Return the value set for the specified property name.

Specified by:
getValue in interface IDescriptor
Parameters:
propertyName_p - the property name must be unique.
Returns:
the object value or null if not found.
See Also:
IDescriptor.getValue(java.lang.String)

setValue

public void setValue(String propertyName_p,
                     Object value_p)
Set the specified value for the given property name in this descriptor.

Parameters:
propertyName_p -
value_p -

getChildren

public List<IDescriptor> getChildren()
Description copied from interface: IDescriptor
Get children descriptors, if any.

Specified by:
getChildren in interface IDescriptor
Returns:
See Also:
IDescriptor.getChildren()

addChildren

public void addChildren(List<? extends IDescriptor> descriptors_p)
Add all given children.

Parameters:
descriptors_p -

addChild

public void addChild(IDescriptor descriptor_p)
Add a child descriptor.

Parameters:
descriptor_p -

getParent

public IDescriptor getParent()
Description copied from interface: IDescriptor
Get parent descriptor, if it was set by the reading algorithm.

Specified by:
getParent in interface IDescriptor
Returns:
null if this information is not available, or if it has none.
See Also:
IDescriptor.getParent()

setParent

public void setParent(IDescriptor parent_p)
Set parent descriptor.

Parameters:
parent_p - the parent to set

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.