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

The following examples show how to use org.alfresco.service.cmr.dictionary.DataTypeDefinition#BOOLEAN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Child.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Child()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 2
Source File: RestVariableHelper.java    From alfresco-remote-api with GNU Lesser General Public License v3.0 4 votes vote down vote up
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;
}
 
Example 3
Source File: NotEquals.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public NotEquals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);
}
 
Example 4
Source File: FTSPrefixTerm.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSPrefixTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 5
Source File: LessThanOrEquals.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public LessThanOrEquals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);
}
 
Example 6
Source File: FTSRange.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSRange()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 7
Source File: GreaterThan.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public GreaterThan()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);   
}
 
Example 8
Source File: FTSPhrase.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSPhrase()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 9
Source File: Equals.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Equals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);   
}
 
Example 10
Source File: FTSProximity.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSProximity()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 11
Source File: LessThan.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public LessThan()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);
}
 
Example 12
Source File: In.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public In()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);   
}
 
Example 13
Source File: Descendant.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Descendant()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 14
Source File: FTSWildTerm.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSWildTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 15
Source File: Exists.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Exists()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 16
Source File: Like.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Like()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 17
Source File: FTSFuzzyTerm.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSFuzzyTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 18
Source File: FTSTerm.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public FTSTerm()
{
    super(NAME, DataTypeDefinition.BOOLEAN, args);
}
 
Example 19
Source File: GreaterThanOrEquals.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
public GreaterThanOrEquals()
{
    super(NAME, DataTypeDefinition.BOOLEAN, ARGS);   
}