Examples of NeighborsConfig


Examples of org.dmlite.model.config.NeighborsConfig

      ViewContext parentViewContext = new ViewContext(viewContext);

      List<Panel> propertyValuePanels = new ArrayList<Panel>();

      // Properties absorbed from parents.
      NeighborsConfig neighborsConfig = conceptConfig
          .getNeighborsConfig();
      for (IEntity neighborConfigEntity : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) neighborConfigEntity;
        if (neighborConfig.getType().equals("parent")
            && neighborConfig.getMax().equals("1")
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

   *             exception if there is a problem
   */
  private void loadNeighborChildren(Element element) throws DmException {
    try {
      if (entity.getConceptConfig() != null) {
        NeighborsConfig neighborsConfig = entity.getConceptConfig()
            .getNeighborsConfig();
        TextHandler textHandler = new TextHandler();
        for (IEntity config : neighborsConfig) {
          NeighborConfig neighborConfig = (NeighborConfig) config;
          if (neighborConfig.getType().equals("child")
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

   *             exception if there is a problem
   */
  private void fillNeighborChildren(Element element) throws DmException {
    try {
      if (entity.getConceptConfig() != null) {
        NeighborsConfig neighborsConfig = entity.getConceptConfig()
            .getNeighborsConfig();
        TextHandler textHandler = new TextHandler();
        for (IEntity config : neighborsConfig) {
          NeighborConfig neighborConfig = (NeighborConfig) config;
          if (neighborConfig.getType().equals("child")
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

      entityModelContext.setEntity(entity);

      List<PropertyNameLabelValuePanelPair> propertyNameLabelValuePanelPairs = new ArrayList<PropertyNameLabelValuePanelPair>();

      // Properties absorbed from parents.
      NeighborsConfig neighborsConfig = conceptConfig
          .getNeighborsConfig();
      for (IEntity neighborConfigEntity : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) neighborConfigEntity;
        if (neighborConfig.getType().equals("parent")
            && neighborConfig.getMax().equals("1")
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

   */
  public IEntity getInternalParent(IEntity entity) {
    IEntity parent = null;
    try {
      ConceptConfig conceptConfig = entity.getConceptConfig();
      NeighborsConfig neighborsConfig = conceptConfig
          .getNeighborsConfig();
      for (IEntity config : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) config;
        if (neighborConfig.getType().equals("parent")
            && (neighborConfig.isInternal())) {
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

   */
  public IEntity getInternalParent(IEntities entities) {
    IEntity parent = null;
    try {
      ConceptConfig conceptConfig = entities.getConceptConfig();
      NeighborsConfig neighborsConfig = conceptConfig
          .getNeighborsConfig();
      for (IEntity config : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) config;
        if (neighborConfig.getType().equals("parent")
            && (neighborConfig.isInternal())) {
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

  public void setParents(IEntities destinationEntities,
      IEntities sourceEntities) {
    try {
      ConceptConfig conceptConfig = sourceEntities.getConceptConfig();
      if (conceptConfig != null) {
        NeighborsConfig neighborsConfig = conceptConfig
            .getNeighborsConfig();
        for (IEntity config : neighborsConfig) {
          NeighborConfig neighborConfig = (NeighborConfig) config;
          if (neighborConfig.getType().equals("parent")) {
            String getParentMethodName = "get"
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

   */
  public void setParents(IEntity entity, IEntities entities) {
    try {
      ConceptConfig conceptConfig = entity.getConceptConfig();
      if (conceptConfig != null) {
        NeighborsConfig neighborsConfig = conceptConfig
            .getNeighborsConfig();
        for (IEntity config : neighborsConfig) {
          NeighborConfig neighborConfig = (NeighborConfig) config;
          if (neighborConfig.getType().equals("parent")) {
            String getParentMethodName = "get"
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

      return true;
    } else if (entityLeft == null || entityRight == null) {
      return false;
    }
    try {
      NeighborsConfig neighborsConfig = entityLeft.getConceptConfig()
          .getNeighborsConfig();
      for (IEntity config : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) config;
        String neighborCode = neighborConfig.getCode();
        Object entityLeftNeighbor = entityLeft
View Full Code Here

Examples of org.dmlite.model.config.NeighborsConfig

  public boolean updateNeighbors(IEntity entity1, IEntity entity2) {
    Entity entityLeft = (Entity) entity1;
    Entity entityRight = (Entity) entity2;
    boolean updated = false;
    try {
      NeighborsConfig neighborsConfig = entityLeft.getConceptConfig()
          .getNeighborsConfig();
      for (IEntity config : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) config;
        String getMethodName = "get" + neighborConfig.getBigCode();
        Object getObject = Reflector.executeMethod(entityRight,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.