Examples of description()


Examples of iryrwarosh.Tile.description()

    if (creature != null && player.canSee(creature))
      text = creature.description();
    else if (item != null)
      text = item.name();
    else
      text = tile.description();

    if (text.length() > 78)
      text = text.substring(0, 75) + "...";
   
    terminal.write(text, 1, 23);
View Full Code Here

Examples of it.polito.appeal.traci.protocol.StatusResponse.description()

      ResponseContainer responsePair = responses.get(i);
      StatusResponse statusResp = responsePair.getStatus();
      verify("command and status IDs match", cmd.id(), statusResp.id());
      if (statusResp.result() != Constants.RTYPE_OK)
        throw new TraCIException("SUMO error for command "
            + statusResp.id() + ": " + statusResp.description());
    }
   
    return respMsg;
  }
View Full Code Here

Examples of javax.ejb.MessageDriven.description()

      metaData.setEjbClass(beanClass.getName());
      if(annotation.name().length() > 0)
         metaData.setEjbName(annotation.name());
      else
         metaData.setEjbName(beanClass.getSimpleName());
      if(annotation.description().length() > 0)
      {
         DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
         metaData.setDescriptionGroup(dg);
      }
      if(annotation.mappedName().length() > 0)
View Full Code Here

Examples of javax.ejb.Singleton.description()

        // set session bean type in case it wasn't set in a sparse ejb-jar.xml.
        if( !ejbSingletonDescriptor.isSessionTypeSet() ) {
            ejbSingletonDescriptor.setSessionType(EjbSessionDescriptor.SINGLETON);
        }

        doDescriptionProcessing(singleton.description(), ejbDesc);
        doMappedNameProcessing(singleton.mappedName(), ejbDesc);

        doSingletonSpecificProcessing(ejbSingletonDescriptor, ejbClass);

        return setBusinessAndHomeInterfaces(ejbDesc, ainfo);
View Full Code Here

Examples of javax.ejb.Stateful.description()

        EjbSessionDescriptor ejbSessionDesc = (EjbSessionDescriptor)ejbDesc;
        ejbSessionDesc.setStateless(false);

        Stateful sful = (Stateful) ainfo.getAnnotation();
        doDescriptionProcessing(sful.description(), ejbDesc);
        doMappedNameProcessing(sful.mappedName(), ejbDesc);

        return setBusinessAndHomeInterfaces(ejbDesc, ainfo);
    }
}
View Full Code Here

Examples of javax.ejb.Stateless.description()

        EjbSessionDescriptor ejbSessionDesc = (EjbSessionDescriptor)ejbDesc;
        ejbSessionDesc.setStateless(true);

        Stateless sless = (Stateless) ainfo.getAnnotation();

        doDescriptionProcessing(sless.description(), ejbDesc);
        doMappedNameProcessing(sless.mappedName(), ejbDesc);

        return setBusinessAndHomeInterfaces(ejbDesc, ainfo);
    }
}
View Full Code Here

Examples of javax.resource.spi.AuthenticationMechanism.description()

                if (!desc.getOutBoundDefined()) {
                    OutboundResourceAdapter ora = new OutboundResourceAdapter();
                    desc.setOutboundResourceAdapter(ora);
                }
                OutboundResourceAdapter ora = desc.getOutboundResourceAdapter();
                String[] description = authMechanism.description();
                int authMechanismValue = getAuthMechVal(authMechanism.authMechanism());
                AuthenticationMechanism.CredentialInterface ci = authMechanism.credentialInterface();
                String credentialInterface = ora.getCredentialInterfaceName(ci);
                //XXX: Siva: For now use the first description
                String firstDesc = "";
View Full Code Here

Examples of javax.resource.spi.ConfigProperty.description()

      {
         cfgMeta.setType(getConfigPropertyType(annotation));
      }
      cfgMeta.setIgnore(configProperty.ignore());

      String[] description = configProperty.description();
      if (description != null)
      {
         if (cfgMeta.getDescriptions() == null)
         {
            DescriptionsImpl descsImpl = new DescriptionsImpl();
View Full Code Here

Examples of javax.resource.spi.Connector.description()

          }

          Connector connectorAnnotation = connectorClass.getAnnotation(Connector.class);

          connector.setDisplayNames(getTexts(connector.getDisplayNames(), connectorAnnotation.displayName()));
          connector.setDescriptions(getTexts(connector.getDescriptions(), connectorAnnotation.description()));

          connector.setEisType(getString(connector.getEisType(), connectorAnnotation.eisType()));
          connector.setVendorName(getString(connector.getVendorName(), connectorAnnotation.vendorName()));
          connector.setResourceAdapterVersion(getString(connector.getResourceAdapterVersion(), connectorAnnotation.version()));
View Full Code Here

Examples of javax.resource.spi.SecurityPermission.description()

            if (isConnectionDefinition) {
                RarBundleContext rarContext = (RarBundleContext) aeHandler;
                ConnectorDescriptor desc = rarContext.getDescriptor();
                //XXX: Siva : For now use the first provided description
                String firstDesc = "";
                if (securityPermission.description().length > 0) {
                    firstDesc = securityPermission.description()[0];
                }
                com.sun.enterprise.deployment.SecurityPermission permission =
                        new com.sun.enterprise.deployment.SecurityPermission(firstDesc,
                                securityPermission.permissionSpec());
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.