Java Code Examples for org.alfresco.service.cmr.dictionary.DataTypeDefinition.BOOLEAN

The following are Jave code examples for showing how to use BOOLEAN of the org.alfresco.service.cmr.dictionary.DataTypeDefinition class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: alfresco-data-model   File: LessThan.java   Source Code and License Vote up 4 votes
public LessThan()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);
}
 
Example 2
Project: alfresco-data-model   File: GreaterThanOrEquals.java   Source Code and License Vote up 4 votes
public GreaterThanOrEquals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);   
}
 
Example 3
Project: alfresco-data-model   File: FTSTerm.java   Source Code and License Vote up 4 votes
public FTSTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 4
Project: alfresco-data-model   File: FTSFuzzyTerm.java   Source Code and License Vote up 4 votes
public FTSFuzzyTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 5
Project: alfresco-data-model   File: Like.java   Source Code and License Vote up 4 votes
public Like()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 6
Project: alfresco-data-model   File: Exists.java   Source Code and License Vote up 4 votes
public Exists()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 7
Project: alfresco-data-model   File: FTSWildTerm.java   Source Code and License Vote up 4 votes
public FTSWildTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 8
Project: alfresco-data-model   File: Descendant.java   Source Code and License Vote up 4 votes
public Descendant()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 9
Project: alfresco-data-model   File: In.java   Source Code and License Vote up 4 votes
public In()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);   
}
 
Example 10
Project: alfresco-data-model   File: Child.java   Source Code and License Vote up 4 votes
public Child()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 11
Project: alfresco-data-model   File: FTSProximity.java   Source Code and License Vote up 4 votes
public FTSProximity()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 12
Project: alfresco-data-model   File: Equals.java   Source Code and License Vote up 4 votes
public Equals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);   
}
 
Example 13
Project: alfresco-data-model   File: FTSPhrase.java   Source Code and License Vote up 4 votes
public FTSPhrase()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 14
Project: alfresco-data-model   File: GreaterThan.java   Source Code and License Vote up 4 votes
public GreaterThan()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);   
}
 
Example 15
Project: alfresco-data-model   File: FTSRange.java   Source Code and License Vote up 4 votes
public FTSRange()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 16
Project: alfresco-data-model   File: LessThanOrEquals.java   Source Code and License Vote up 4 votes
public LessThanOrEquals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);
}
 
Example 17
Project: alfresco-data-model   File: FTSPrefixTerm.java   Source Code and License Vote up 4 votes
public FTSPrefixTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 18
Project: alfresco-data-model   File: NotEquals.java   Source Code and License Vote up 4 votes
public NotEquals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);
}
 
Example 19
Project: alfresco-remote-api   File: RestVariableHelper.java   Source Code and License Vote up 4 votes
public QName extractTypeFromValue(Object value) {
    QName type = null;
    if(value instanceof Collection<?>)
    {
        Collection<?> collection = (Collection<?>) value;
        if(collection.size() > 0)
        {
            type = extractTypeFromValue(collection.iterator().next());
        }
    }
    else
    {
        if(value instanceof String) 
        {
            type = DataTypeDefinition.TEXT;
        }
        else if(value instanceof Integer)
        {
            type = DataTypeDefinition.INT;
        }
        else if(value instanceof Long)
        {
            type = DataTypeDefinition.LONG;
        }
        else if(value instanceof Double)
        {
            type = DataTypeDefinition.DOUBLE;
        }
        else if(value instanceof Float)
        {
            type = DataTypeDefinition.FLOAT;
        }
        else if(value instanceof Date)
        {
            type = DataTypeDefinition.DATETIME;
        }
        else if(value instanceof Boolean)
        {
            type = DataTypeDefinition.BOOLEAN;
        }
        else if(value instanceof QName)
        {
            type = DataTypeDefinition.QNAME;
        }
        else if(value instanceof NodeRef || value instanceof ScriptNode)
        {
            type = DataTypeDefinition.NODE_REF;
        }
    }
   
    if(type == null)
    {
        // Type cannot be determined, revert to default for unknown types
        type = DataTypeDefinition.ANY;
    }
    return type;
}