Examples of AttributeType


Examples of org.gephi.data.attributes.api.AttributeType

    @Override
    public boolean areAllColumnsOfSameType(AttributeColumn[] columns) {
        if (columns.length == 0) {
            return false;
        }
        AttributeType type = columns[0].getType();
        return areAllColumnsOfType(columns, type);
    }
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeType

        return true;
    }

    @Override
    public boolean isNumberColumn(AttributeColumn column) {
        AttributeType attributeType = column.getType();
        return Number.class.isAssignableFrom(attributeType.getType());
    }
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeType

        return true;
    }

    @Override
    public boolean isNumberListColumn(AttributeColumn column) {
        AttributeType attributeType = column.getType();
        return NumberList.class.isAssignableFrom(attributeType.getType());
    }
View Full Code Here

Examples of org.hibernate.metamodel.source.annotations.attribute.AttributeType

    final Class<?> type = (Class<?>) findResolvedType( member.getName(), resolvedMembers );
    final Map<DotName, List<AnnotationInstance>> annotations = JandexHelper.getMemberAnnotations(
        classInfo, member.getName()
    );

    AttributeType attributeType = determineAttributeType( annotations );
    switch ( attributeType ) {
      case BASIC: {
        SimpleAttribute attribute = SimpleAttribute.createSimpleAttribute(
            attributeName,
            type.getName(),
View Full Code Here

Examples of org.jboss.identity.federation.saml.v2.assertion.AttributeType

      //Let us get the roles
      AttributeStatementType attributeStatement = (AttributeStatementType) assertion.getStatementOrAuthnStatementOrAuthzDecisionStatement().get(0);
      List<Object> attList = attributeStatement.getAttributeOrEncryptedAttribute();
      for(Object obj:attList)
      {
         AttributeType attr = (AttributeType) obj;
         String roleName = (String) attr.getAttributeValue().get(0);
         roles.add(roleName);
      }
      return this.createGenericPrincipal(request, userName, roles);      
   }
View Full Code Here

Examples of org.jboss.security.xacml.core.model.context.AttributeType

    private SubjectType createSubject(String reqTradeAppr, String reqCreditAppr, int buyPrice) {
        // Create a subject type
        SubjectType subject = new SubjectType();
        subject.setSubjectCategory("urn:oasis:names:tc:xacml:1.0:subject-category:access-subject");
        // create the subject attributes
        AttributeType attSubjectID = RequestAttributeFactory.createStringAttributeType(
                "urn:oasis:names:tc:xacml:1.0:subject:subject-id", "xacml20.interop.com", "123456");
        subject.getAttribute().add(attSubjectID);

        AttributeType attUserName = RequestAttributeFactory.createStringAttributeType(
                "urn:xacml:2.0:interop:example:subject:user-name", "xacml20.interop.com", "John Smith");
        subject.getAttribute().add(attUserName);

        AttributeType attBuyNumShares = RequestAttributeFactory.createIntegerAttributeType(
                "urn:xacml:2.0:interop:example:subject:buy-num-shares", "xacml20.interop.com", 1000);
        subject.getAttribute().add(attBuyNumShares);

        AttributeType attBuyOfferShare = RequestAttributeFactory.createIntegerAttributeType(
                "urn:xacml:2.0:interop:example:subject:buy-offer-price", "xacml20.interop.com", buyPrice);
        subject.getAttribute().add(attBuyOfferShare);

        AttributeType attRequestExtCred = RequestAttributeFactory.createStringAttributeType(
                "urn:xacml:2.0:interop:example:subject:req-credit-ext-approval", "xacml20.interop.com", reqCreditAppr);
        subject.getAttribute().add(attRequestExtCred);

        AttributeType attRequestTradeApproval = RequestAttributeFactory.createStringAttributeType(
                "urn:xacml:2.0:interop:example:subject:req-trade-approval", "xacml20.interop.com", reqTradeAppr);
        subject.getAttribute().add(attRequestTradeApproval);

        return subject;
    }
View Full Code Here

Examples of org.jsmdr.base.AttributeType

    for (int i=0; i<attributeList.size(); i++) {
      AttributeBase attr = null;
      try
      {
        attr = (AttributeBase)attributeList.get(i);
        AttributeType type = AttributeType.lookup(attr.getType());
       
        if (type == AttributeType.EXTENSION_ID)
          cdr.setExtensionID(attr.getValueString(line));
        else if (type == AttributeType.DESTINATION_CLI)
          cdr.setDestinationOrCallID(attr.getValueString(line));
View Full Code Here

Examples of org.nasutekds.server.types.AttributeType

                     new UserDNNotificationMessageTemplateElement());
              }
              else if (lowerTokenStr.startsWith("notification-user-attr:"))
              {
                String attrName = lowerTokenStr.substring(23);
                AttributeType attrType =
                     DirectoryServer.getAttributeType(attrName, false);
                if (attrType == null)
                {
                  throw new ConfigException(
                                 ERR_SMTP_ASNH_TEMPLATE_UNDEFINED_ATTR_TYPE.get(
                                      delimPos, lineNumber, attrName));
                }
                else
                {
                  if (debugEnabled())
                  {
                    TRACER.debugInfo("Found a user attribute token for  " +
                                     attrType.getNameOrOID() + " -- " +
                                     tokenStr);
                  }

                  elementList.add(
                       new UserAttributeNotificationMessageTemplateElement(
View Full Code Here

Examples of org.omg.Security.AttributeType

        throws ConfigurationException
    {
        this.name = DEFAULT_NAME;

        type =
            new AttributeType( new ExtensibleFamily( (short)0, (short)1 ), AccessId.value );
        configure(orb.getConfiguration());
    }
View Full Code Here

Examples of org.opengis.feature.type.AttributeType

  @Test
  public void testLayerBeanstoSimpleFeatureType() throws LayerException {
    SimpleFeatureType type = service.toSimpleFeatureType(layer.getLayerInfo());
    Assert.assertEquals("org.geomajas.layer.bean.FeatureBean", type.getName().getLocalPart());
    AttributeType doubleType = type.getType("doubleAttr");
    Assert.assertEquals(Double.class, doubleType.getBinding());
    Assert.assertEquals("doubleAttr", doubleType.getName().getLocalPart());
  }
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.