public abstract class AbstractPart extends Object implements IPart
Constructor and Description |
---|
AbstractPart(String name,
IPart parentPart)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(IPartProperty property)
Adds a property to the part.
|
String |
getName() |
IPart |
getParent() |
int |
getPartLevel() |
IPartProperty |
getProperty(PropertyType propertyType)
Returns a property of the part : if in this part, one exists of the given type.
|
boolean |
hasProperty(PropertyType propertyType)
Checks if a property of the given type exists in this part.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFrame, updateFrame, updateFrame, updateFrame
public final boolean hasProperty(PropertyType propertyType)
hasProperty
in interface IPart
propertyType
- the typepublic final void addProperty(IPartProperty property)
addProperty
in interface IPart
property
- the propertypublic final IPartProperty getProperty(PropertyType propertyType)
getProperty
in interface IPart
propertyType
- the type of the wanted propertypublic final String getName()
public final IPart getParent()
public final int getPartLevel()
getPartLevel
in interface IPart
Copyright © 2021 CNES. All rights reserved.