Examples of addType()


Examples of macromedia.asc.semantics.Slot.addType()

            // cn: if the user did not define an explicit constructor for the baseclass, decl_styles is
            //  never initialized.  Initialize now to correctly detect wrong # of arguments supplied.
            if (slot != null && size(slot.getTypes()) == 0 && size(slot.getDeclStyles()) == 0)
            {
                slot.addDeclStyle(PARAM_Void);
                slot.addType(cx.voidType().getDefaultTypeInfo());
            }
        }

        if( node.call.args != null )
        {

Examples of net.citizensnpcs.resources.npclib.HumanNPC.addType()

  public void grant(Player player, int UID) {
    HumanNPC spawned = NPCManager.get(NPCManager.register(name,
        at != null ? at : player.getLocation(), player.getName(),
        NPCCreateReason.COMMAND));
    for (String type : toggles) {
      spawned.addType(type);
    }
  }

  @Override
  public boolean isTake() {

Examples of net.sf.rej.Imports.addType()

      ConstantPoolInfo cpi = pool.get(i);
      if (cpi != null) {
        if (cpi.getType() == ConstantPoolInfo.CLASS) {
          // there can be array definitions here, too
          JavaType cls = new JavaType(cpi.getValue());
          imports.addType(cls.getType());
        } else if (cpi.getType() == ConstantPoolInfo.NAME_AND_TYPE) {
          NameAndTypeInfo nati = (NameAndTypeInfo) cpi;
          Descriptor desc = nati.getDescriptor();
          if (!desc.getReturn().isPrimitive()) {
            imports.addType(desc.getReturn().getType());

Examples of org.apache.abdera.ext.features.Feature.addType()

    @Test
    public void testType() throws Exception {
        Abdera abdera = Abdera.getInstance();
        Feature feature = abdera.getFactory().newElement(FeaturesHelper.FEATURE);
        feature.addType("image/jpg", "image/gif", "image/png", "image/*");
        String[] types = feature.getTypes();
        assertEquals(1, types.length);
        assertEquals("image/*", types[0]);
    }
}

Examples of org.apache.cxf.binding.corba.CorbaTypeMap.addType()

                if (pos != -1) {
                    name = name.substring(pos + 1);
                    corbaType.setName(name);
                }

                map.addType(name, corbaType);
                LOG.fine("Adding type " + name);
            }
        }
        return map;
    }

Examples of org.apache.jetspeed.om.common.DublinCore.addType()

        dc.addPublisher(JetspeedLocale.getDefaultLocale(), "Publisher 1");
        dc.addRelation(JetspeedLocale.getDefaultLocale(), "Relation 1");
        dc.addRight(JetspeedLocale.getDefaultLocale(), "Right 1");
        dc.addSource(JetspeedLocale.getDefaultLocale(), "Source 1");
        dc.addSubject(JetspeedLocale.getDefaultLocale(), "Subject 1");
        dc.addType(JetspeedLocale.getDefaultLocale(), "Type 1");
    }

    public void testData() throws Exception
    {
        verifyData(false);

Examples of org.apache.jetspeed.om.impl.DublinCoreImpl.addType()

        dc.addPublisher(JetspeedLocale.getDefaultLocale(), "Publisher 1");
        dc.addRelation(JetspeedLocale.getDefaultLocale(), "Relation 1");
        dc.addRight(JetspeedLocale.getDefaultLocale(), "Right 1");
        dc.addSource(JetspeedLocale.getDefaultLocale(), "Source 1");
        dc.addSubject(JetspeedLocale.getDefaultLocale(), "Subject 1");
        dc.addType(JetspeedLocale.getDefaultLocale(), "Type 1");
    }

    public void testAll() throws Exception
    {
        // Part1a: data

Examples of org.apache.jetspeed.om.portlet.DublinCore.addType()

        dc.addPublisher(JetspeedLocale.getDefaultLocale(), "Publisher 1");
        dc.addRelation(JetspeedLocale.getDefaultLocale(), "Relation 1");
        dc.addRight(JetspeedLocale.getDefaultLocale(), "Right 1");
        dc.addSource(JetspeedLocale.getDefaultLocale(), "Source 1");
        dc.addSubject(JetspeedLocale.getDefaultLocale(), "Subject 1");
        dc.addType(JetspeedLocale.getDefaultLocale(), "Type 1");
    }

    /**
     * <p>
     * buildTestData
 

Examples of org.apache.jetspeed.om.portlet.impl.DublinCoreImpl.addType()

        dc.addPublisher(JetspeedLocale.getDefaultLocale(), "Publisher 1");
        dc.addRelation(JetspeedLocale.getDefaultLocale(), "Relation 1");
        dc.addRight(JetspeedLocale.getDefaultLocale(), "Right 1");
        dc.addSource(JetspeedLocale.getDefaultLocale(), "Source 1");
        dc.addSubject(JetspeedLocale.getDefaultLocale(), "Subject 1");
        dc.addType(JetspeedLocale.getDefaultLocale(), "Type 1");
    }

    public void testData() throws Exception
    {
        verifyData(false);

Examples of org.apache.stanbol.commons.jsonld.JsonLdProfile.addType()

    public void testToSQLFromProfile() throws Exception {
        DerbyFactStore fs = new DerbyFactStore();
        JsonLdProfile jsonLd = new JsonLdProfile();
        jsonLd.addNamespacePrefix("http://iks-project.eu/ont/", "iks");
       
        jsonLd.addType("person", "iks:person");
        jsonLd.addType("organization", "iks:organization");
       
        String profile = "http://iks-project.eu/ont/employeeOf";
        String profileB64 = Base64.encodeBase64URLSafeString(profile.getBytes());
       
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.