xcodegen.structure
Class AbstractXObject
java.lang.Object
|
+--xcodegen.structure.AbstractXObject
- Direct Known Subclasses:
- AbstractXMethod, XClass, XPackage, XParameter, XReference
- public abstract class AbstractXObject
- extends java.lang.Object
Base class of all XCodeGen objects
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Herve Tchepannou
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractXObject
public AbstractXObject()
getBeanName
public java.lang.String getBeanName()
- Return the Bean-style name of the element. The Bean-style name has the
1st character capitalized.
- Returns:
- Bean-style name of the element
hasChild
public boolean hasChild(AbstractXObject obj)
- Check if the object has a given child
- Returns:
- true if the object contains the child
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getChildren
public java.util.Collection getChildren()
getParent
public AbstractXObject getParent()
add
protected void add(AbstractXObject child)
getChildren
protected java.util.Collection getChildren(java.lang.Class type)
getChild
protected AbstractXObject getChild(java.lang.String name)
getChild
protected AbstractXObject getChild(java.lang.String name,
java.lang.Class type)