Examples of AttributeType


Examples of com.emitrom.lienzo.client.core.AttributeType

            for (String attrName : keys)
            {
                ctx.push(attrName);

                AttributeType atyp = factory.getAttributeType(attrName);

                if (atyp == null)
                {
                    ctx.addInvalidAttributeError(type);
                }
                else
                {
                    atyp.validate(aobj.get(attrName), ctx);
                }
                ctx.pop(); // attrName
            }
        }
        ctx.pop(); // attributes
View Full Code Here

Examples of com.hazelcast.query.impl.AttributeType

                return null;
            }
            if (attributeValue instanceof IndexImpl.NullObject) {
                return IndexImpl.NULL;
            }
            AttributeType type = attributeType;
            if (type == null) {
                QueryableEntry queryableEntry = (QueryableEntry) mapEntry;
                type = queryableEntry.getAttributeType(attribute);
                attributeType = type;
            }
            if (type == AttributeType.ENUM) {
                // if attribute type is enum, convert given attribute to enum string
                return type.getConverter().convert(attributeValue);
            } else {
                // if given attribute value is already in expected type then there's no need for conversion.
                if (entryValue != null && entryValue.getClass().isAssignableFrom(attributeValue.getClass())) {
                    return attributeValue;
                } else if (type != null) {
                    return type.getConverter().convert(attributeValue);
                } else {
                    throw new QueryException("Unknown attribute type: " + attributeValue.getClass());
                }
            }
        }
View Full Code Here

Examples of gistoolkit.features.AttributeType

                int dec = myHeader.getFieldDecimalCount(i);
                // create the appropriate type based on the dbase type
                switch (myHeader.getFieldType(i)) {
                case 'L':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.BOOLEAN, len, dec);
                    break;
                case 'C':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.STRING, len, dec);
                    break;
                case 'D':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.TIMESTAMP, len, dec);
                    break;
                case 'N':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.FLOAT, len, dec);
                    break;
                case 'F':
                    // the -1 decimal length indicates that this is a 'F'
                    // field when writing the record in DbaseFileWriter
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.FLOAT, len, -1);
                    break;
                default:
                    myFieldTypes[i] = null;
                    break;
                }
View Full Code Here

Examples of gistoolkit.features.AttributeType

            tempComp = "<";
        }
        String tempAttributeValue = (String) getAttributeValue();
        if (tempAttributeValue == null) return null;
        if (tempAttributeValue.length() == 0) return null;
        return getAttributeName()+tempComp+inConverter.toSQLString(tempAttributeValue, new AttributeType(AttributeType.STRING));
    }   
View Full Code Here

Examples of gistoolkit.features.AttributeType

        }
        if (tempComparison == ATTRIBUTE_LESS){
            tempComp = "<";
        }
       
        return getAttributeName()+tempComp+inSQLConverter.toSQLDate((java.util.Date)getAttributeValue(), new AttributeType(AttributeType.TIMESTAMP));
    }
View Full Code Here

Examples of gistoolkit.features.AttributeType

        StringBuffer tempSB = new StringBuffer();
        tempSB.append(getAttributeName());
        tempSB.append(" IN(");
        for (int i=0; i<tempList.size(); i++){
            if (i>0) tempSB.append(",");
            tempSB.append(inConverter.toSQLString(tempAttributeValue, new AttributeType(AttributeType.STRING)));
        }
        tempSB.append(")");
        return tempSB.toString();
    }   
View Full Code Here

Examples of gistoolkit.features.AttributeType

    if (tempComparison == ATTRIBUTE_LESS){
      tempComp = "<";
    }
    Double tempAttributeValue = (Double) getAttributeValue();
    if (tempAttributeValue == null) return null;
        return getAttributeName()+tempComp+inConverter.toSQLDecimal(tempAttributeValue, new AttributeType(AttributeType.FLOAT));
  }       
View Full Code Here

Examples of net.sf.ehcache.search.attribute.AttributeType

    public boolean execute(Element e, Map<String, AttributeExtractor> attributeExtractors) {
        Object attributeValue = attributeExtractors.get(attributeName).attributeFor(e, getAttributeName());
        if (attributeValue == null) {
            return false;
        } else {
            AttributeType attrType = AttributeType.typeFor(getAttributeName(), attributeValue);
            if (!getType().equals(attrType)) {
                throw new SearchException("Expecting attribute of type " + getType().name() + " but was " + attrType.name());
            }

            if (getType().equals(AttributeType.STRING)) {
                return ((String) this.value).equalsIgnoreCase((String) attributeValue);
            } else {
View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.AttributeType

    private byte[] findClassInDIT( List<Dn> searchContexts, String name ) throws ClassNotFoundException
    {
        // Set up the search filter
        BranchNode filter = new AndNode();
        AttributeType fqjcnAt = directoryService.getSchemaManager().getAttributeType( "fullyQualifiedJavaClassName" );
        filter.addNode( new EqualityNode<String>( fqjcnAt, new StringValue( name ) ) );
        filter.addNode( new EqualityNode<String>( OBJECT_CLASS_AT,
            new StringValue( ApacheSchemaConstants.JAVA_CLASS_OC ) ) );

        try
View Full Code Here

Examples of org.apache.directory.ldapstudio.schemas.model.AttributeType

        // Creating the new attribute type and adding it to the schema
        AttributeTypeLiteral attributeTypeLiteral = new AttributeTypeLiteral( this.page.getOidField() );
        attributeTypeLiteral.setNames( new String[]
            { this.page.getNameField() } );
        AttributeType attributeType = new AttributeType( attributeTypeLiteral, schema );
        schema.addAttributeType( attributeType );

        // Opening the associated editor
        AttributeTypeEditorInput input = new AttributeTypeEditorInput( attributeType );
        String editorId = AttributeTypeEditor.ID;
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.