Examples of Name


Examples of javaflow.components.api.Name

import javaflow.components.api.Name;

public class NetworkApiUtil {

    public static String portNameForField(Field field) {
        Name n = field.getAnnotation(Name.class);
        final String portName;
        if (null == n) {
            String possiblePortName = field.getName().toUpperCase();
            portName = stringWithoutPossiblePortSuffix(possiblePortName);
        } else {
            portName = n.value();
        }
        return portName;
    }
View Full Code Here

Examples of javax.lang.model.element.Name

      category = ONE_OFF, maturity = EXPERIMENTAL, severity = ERROR, summary = "")
  private static class SuperCallMatcher extends BugChecker implements MethodInvocationTreeMatcher {
    @Override
    public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {
      Tree select = tree.getMethodSelect();
      Name name;
      if (select instanceof MemberSelectTree) {
        name = ((MemberSelectTree) select).getIdentifier();
      } else if (select instanceof IdentifierTree) {
        name = ((IdentifierTree) select).getName();
      } else {
        return Description.NO_MATCH;
      }
      return name.contentEquals("super")
          ? describeMatch(tree)
          : Description.NO_MATCH;
    }
View Full Code Here

Examples of javax.naming.Name

        Iterator itor = list.iterator();
        while (itor.hasNext())
        {
            EnvEntry ee = (EnvEntry)itor.next();
            ee.bindToENC(ee.getJndiName());
            Name namingEntryName = NamingEntryUtil.makeNamingEntryName(null, ee);
            NamingUtil.bind(envCtx, namingEntryName.toString(), ee);//also save the EnvEntry in the context so we can check it later         
        }
       
        Log.debug("Binding env entries from the server scope");
       
        scope = getWebAppContext().getServer();
        list = NamingEntryUtil.lookupNamingEntries(scope, EnvEntry.class);
        itor = list.iterator();
        while (itor.hasNext())
        {
            EnvEntry ee = (EnvEntry)itor.next();
            ee.bindToENC(ee.getJndiName());
            Name namingEntryName = NamingEntryUtil.makeNamingEntryName(null, ee);
            NamingUtil.bind(envCtx, namingEntryName.toString(), ee);//also save the EnvEntry in the context so we can check it later         
        }
       
        Log.debug("Binding env entries from the context scope");
        scope = getWebAppContext();
        list = NamingEntryUtil.lookupNamingEntries(scope, EnvEntry.class);
        itor = list.iterator();
        while (itor.hasNext())
        {
            EnvEntry ee = (EnvEntry)itor.next();
            ee.bindToENC(ee.getJndiName());
            Name namingEntryName = NamingEntryUtil.makeNamingEntryName(null, ee);
            NamingUtil.bind(envCtx, namingEntryName.toString(), ee);//also save the EnvEntry in the context so we can check it later
        }
    } 
View Full Code Here

Examples of javax.xml.soap.Name

                    getJAXBContext().createUnmarshaller();
                Iterator headerElements = header.examineAllHeaderElements();
                while (headerElements.hasNext()) {
                    SOAPHeaderElement headerElement =
                        (SOAPHeaderElement)headerElements.next();
                    Name headerName = headerElement.getElementName();
                    String localName = headerName.getLocalName();
                    if (Names.WSRM_NAMESPACE_NAME.equals(headerName.getURI())) {
                        LOG.log(Level.INFO, "decoding RM header {0}", localName);
                        if (Names.WSRM_SEQUENCE_NAME.equals(localName)) {
                            SequenceType s = decodeProperty(SequenceType.class,
                                                            headerElement,
                                                            unmarshaller);
View Full Code Here

Examples of juzu.impl.common.Name

  // end::init[]

  // tag::processAnnotationAdded[]
  @Override
  public void processAnnotationAdded(ApplicationMetaModel application, AnnotationKey key, AnnotationState added) {
    Name type = key.getType();
    if (type.toString().equals(BundleGen.class.getName())) {
      ElementHandle.Package pkg = (ElementHandle.Package)key.getElement();
      bundles.put(pkg, (String)added.get("value"));
    }
  }
View Full Code Here

Examples of lotus.domino.Name

      System.out.println("Starting NotesRunner");
      Session session = NotesFactory.createSession();
      sessionid.set(getLotusId(session));
      Database db = session.getDatabase("", "log.nsf");
      getLotusId(db);
      Name name = null;
      int i = 0;
      try {
        for (i = 0; i <= 100000; i++) {
          name = session.createName(UUID.randomUUID().toString());
          getLotusId(name);
          DateTime dt = session.createDateTime(new Date());
          getLotusId(dt);
          DateTime end = session.createDateTime(new Date());
          getLotusId(end);
          DateRange dr = session.createDateRange(dt, end);
          getLotusId(dr);
          Document doc = db.createDocument();
          getLotusId(doc);
          Item i1 = doc.replaceItemValue("Foo", dr);
          getLotusId(i1);
          Item i2 = doc.replaceItemValue("Bar", dr.getText());
          getLotusId(i2);
          Item i3 = doc.replaceItemValue("Blah", dr.getStartDateTime().getLocalTime());
          getLotusId(i3);
          lotus.domino.ColorObject color = session.createColorObject();
          getLotusId(color);
          color.setRGB(128, 128, 128);
          Item i4 = doc.replaceItemValue("color", color.getNotesColor());
          getLotusId(i4);
          i1.recycle();
          i2.recycle();
          i3.recycle();
          i4.recycle();
          DateTime create = doc.getCreated();
          getLotusId(create);
          String lc = create.getLocalTime();
          if (i % 10000 == 0) {
            System.out.println(Thread.currentThread().getName() + " Name " + i + " is " + name.getCommon() + " "
                + "Local time is " + lc + "  " + dr.getText());
          }
          dr.recycle();
          doc.recycle();
          dt.recycle();
          end.recycle();
          create.recycle();
          color.recycle();
          if (name != null)
            name.recycle();
        }
      } catch (Throwable t) {
        t.printStackTrace();
        System.out.println("Exception at loop point " + i);
      }
View Full Code Here

Examples of ma.glasnost.orika.test.common.types.TestCaseClasses.Name

    @Test
    public void testMappingNestedTypes() {
     
      List<BookNested> books = new ArrayList<BookNested>(4);
     
      AuthorNested author1 = new AuthorNested(new Name("Abdelkrim","EL KHETTABI"));
      AuthorNested author2 = new AuthorNested(new Name("Bill","Shakespeare"));
     
      books.add(new BookNested("Book #1", author1));
      books.add(new BookNested("Book #2", author1));
      books.add(new BookNested("Book #3", author2));
      books.add(new BookNested("Book #4", author2));
View Full Code Here

Examples of ma.glasnost.orika.test.property.TestCaseClasses.Name

       
       
        MapperFacade mapper = factory.getMapperFacade();
       
        A a = new A();
        Name name = new Name();
        name.setFirstName("Albert");
        name.setLastName("Einstein");
        a.assignTheName(name);
        Address address = new Address();
        address.city = "Somewhere";
        address.country = "Germany";
        address.postalCode = "A1234FG";
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Name

          final VEvent vEvent = ICal4JUtils.createVEvent(teamEvent.getStartDate(), teamEvent.getEndDate(), uid, summary,
              teamEvent.isAllDay());
          if (StringUtils.isNotBlank(teamEvent.getLocation()) == true) {
            vEvent.getProperties().add(new Location(teamEvent.getLocation()));
          }
          vEvent.getProperties().add(new Name(teamEvent.getCalendar().getTitle()));
          if (StringUtils.isNotBlank(teamEvent.getNote()) == true) {
            vEvent.getProperties().add(new Description(teamEvent.getNote()));
          }

          // add alarm if necessary
View Full Code Here

Examples of net.jini.lookup.entry.Name

  public RMServer(String rmsName)
    throws RMServerException, ClassNotFoundException
  {
    this(rmsName, null,
         new Class[] { Class.forName("net.jini.space.JavaSpace") },
         new Entry[] { new Name("JobRepository") },
         new String[] { System.getProperty("user.name") },
         null,
         new Class[] {
           Class.forName("net.jini.core.transaction.server.TransactionManager")},
         null, new String[] { System.getProperty("user.name") });
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.