Package org.dcarew.model.core

Examples of org.dcarew.model.core.ModelObject


  public Object[] getChildren(Object parentElement)
  {
    if (parentElement instanceof ModelObject)
    {
      ModelObject modelObject = (ModelObject)parentElement;
     
      IModelClass modelClass = modelObject.getModelClass();
     
      IModelProperty[] properties = modelClass.getProperties();
     
      Object[] children = new Object[properties.length];
     
      for (int i = 0; i < properties.length; i++)
      {
        children[i] = modelObject.getPropertyValue(properties[i]);
      }
     
      return children;
    }
    else if (parentElement instanceof Collection)
View Full Code Here

TOP

Related Classes of org.dcarew.model.core.ModelObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.