Examples of InfoType


Examples of com.example.extensible.customer.InfoType

   * <!-- end-user-doc -->
   * @generated
   */
  public ChangeContext basicSetInfo(InfoType newInfo, ChangeContext changeContext)
  {
    InfoType oldInfo = info;
    info = newInfo;
    boolean oldInfo_set_ = info_set_;
    info_set_ = true;
    if (isNotifying())
    {
View Full Code Here

Examples of com.example.extensible.customer.InfoType

   * <!-- end-user-doc -->
   * @generated
   */
  public ChangeContext basicUnsetInfo(ChangeContext changeContext)
  {
    InfoType oldInfo = info;
    info = null;
    boolean oldInfo_set_ = info_set_;
    info_set_ = false;
    if (isNotifying())
    {
View Full Code Here

Examples of com.flansmod.common.types.InfoType

  public void playerDrops(PlayerDropsEvent event)
  {
    for(int i = event.drops.size() - 1; i >= 0; i--)
    {
      EntityItem ent = event.drops.get(i);
      InfoType type = InfoType.getType(ent.getEntityItem());
      if(type != null && !type.canDrop)
        event.drops.remove(i);
    }
  }
View Full Code Here

Examples of com.flansmod.common.types.InfoType

  }
 
  @SubscribeEvent
  public void playerDrops(ItemTossEvent event)
  {
    InfoType type = InfoType.getType(event.entityItem.getEntityItem());
    if(type != null && !type.canDrop)
      event.setCanceled(true);
  }
View Full Code Here

Examples of com.flansmod.common.types.InfoType

      Class<? extends InfoType> typeClass = type.getTypeClass();
      for(TypeFile typeFile : TypeFile.files.get(type))
      {
        try
        {
          InfoType infoType = (typeClass.getConstructor(TypeFile.class).newInstance(typeFile));
          infoType.read(typeFile);
          switch(type)
          {
          case bullet : bulletItems.add((ItemBullet)new ItemBullet((BulletType)infoType).setUnlocalizedName(infoType.shortName)); break;
          case attachment : attachmentItems.add((ItemAttachment)new ItemAttachment((AttachmentType)infoType).setUnlocalizedName(infoType.shortName)); break;
          case gun : gunItems.add((ItemGun)new ItemGun((GunType)infoType).setUnlocalizedName(infoType.shortName)); break;
View Full Code Here

Examples of org.apdplat.module.info.model.InfoType

    @Resource(name="serviceFacade")
    private ServiceFacade serviceFacade;

   
    public String toRootJson(String lang){
        InfoType infoType=getRootInfoType();
        infoType.setLang(lang);
       
        if(infoType==null){
            LOG.error("获取根新闻类别失败!");
            return "";
        }
        StringBuilder json=new StringBuilder();
        json.append("[");

        json.append("{'text':'")
            .append(infoType.getInfoTypeName())
            .append("','id':'")
            .append(infoType.getId());
            if(infoType.getChild().isEmpty()){
                json.append("','leaf':true,'cls':'file'");
            }else{
                json.append("','leaf':false,'cls':'folder'");
            }
        json.append("}");
View Full Code Here

Examples of org.apdplat.module.info.model.InfoType

        json.append("]");
       
        return json.toString();
    }
    public String toJson(int infoTypeId, String lang){
        InfoType infoType=serviceFacade.retrieve(InfoType.class, infoTypeId);
        if(infoType==null){
            LOG.error("获取ID为 "+infoType+" 的新闻类别失败!");
            return "";
        }
        List<InfoType> child=infoType.getChild();
        if(child.isEmpty()){
            return "";
        }
        StringBuilder json=new StringBuilder();
        json.append("[");
View Full Code Here

Examples of org.apdplat.module.info.model.InfoType

    //方式二:使用IN语句
    @Override
    public PropertyCriteria buildPropertyCriteria(){
        PropertyCriteria propertyCriteria=new PropertyCriteria();
        if(infoTypeId>0){
            InfoType obj=getService().retrieve(InfoType.class, infoTypeId);
            //获取orgId的所有子机构的ID
            List<Integer> infoTypeIds=InfoTypeService.getChildIds(obj);
            //加上orgId
            infoTypeIds.add(obj.getId());
           
            PropertyEditor pe=new PropertyEditor("infoType.id", Operator.in, PropertyType.List, infoTypeIds);
            propertyCriteria.addPropertyEditor(pe);
           
            return propertyCriteria;
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.