public class MetaClassImpl extends MetadataObjectImpl implements MetaClass
Constructor and Description |
---|
MetaClassImpl(MetaModel model,
java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
void |
addAncestor(MetaClass ancestorClass) |
MetaClass |
getAncestor()
Immediate ancestor of the object, or null if there is no one.
|
java.util.List<MetaClass> |
getAncestors()
All ancestors of the metaclass, in order going up from the immediate ancestor.
|
java.util.Collection<MetaClass> |
getDescendants()
All descendants of the metaclass, recursively.
|
java.lang.Class |
getJavaClass() |
MetaModel |
getModel() |
java.util.Collection<MetaProperty> |
getOwnProperties() |
java.util.Collection<MetaProperty> |
getProperties() |
MetaProperty |
getProperty(java.lang.String name)
Get MetaProperty by its name.
|
MetaProperty |
getPropertyNN(java.lang.String name)
Get MetaProperty by its name.
|
MetaPropertyPath |
getPropertyPath(java.lang.String propertyPath)
Returns MetaPropertyPath object, representing path to the property from the current class
|
void |
registerAncestorProperty(MetaProperty metaProperty) |
void |
registerProperty(MetaProperty metaProperty) |
void |
setJavaClass(java.lang.Class javaClass) |
java.lang.String |
toString() |
getAnnotations, getName, setName
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotations, getName
public MetaClassImpl(MetaModel model, java.lang.String className)
public MetaClass getAncestor()
MetaClass
getAncestor
in interface MetaClass
public java.util.List<MetaClass> getAncestors()
MetaClass
getAncestors
in interface MetaClass
public java.util.Collection<MetaClass> getDescendants()
MetaClass
getDescendants
in interface MetaClass
public MetaModel getModel()
public java.lang.Class getJavaClass()
getJavaClass
in interface MetaClass
public java.util.Collection<MetaProperty> getProperties()
getProperties
in interface MetaClass
public MetaProperty getProperty(java.lang.String name)
MetaClass
getProperty
in interface MetaClass
public MetaProperty getPropertyNN(java.lang.String name)
MetaClass
getPropertyNN
in interface MetaClass
public MetaPropertyPath getPropertyPath(java.lang.String propertyPath)
MetaClass
getPropertyPath
in interface MetaClass
propertyPath
- dot-separated stringpublic java.util.Collection<MetaProperty> getOwnProperties()
getOwnProperties
in interface MetaClass
public void setJavaClass(java.lang.Class javaClass)
public void addAncestor(MetaClass ancestorClass)
public void registerProperty(MetaProperty metaProperty)
public void registerAncestorProperty(MetaProperty metaProperty)
public java.lang.String toString()
toString
in class java.lang.Object