Interface AttributeTypeSupport
-
public interface AttributeTypeSupport
API helping to manipulate attributes, used internally- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<org.springframework.core.io.Resource>
getAttibuteTypeResourcesFromClasspathDir()
Get attribute type resource from classpath resource dirjava.util.Collection<pl.edu.icm.unity.types.basic.AttributeType>
getAttributeTypes()
AttributeValueSyntax<?>
getSyntax(pl.edu.icm.unity.types.basic.Attribute attribute)
AttributeValueSyntax<?>
getSyntax(pl.edu.icm.unity.types.basic.AttributeType at)
AttributeValueSyntax<?>
getSyntaxFallingBackToDefault(pl.edu.icm.unity.types.basic.Attribute attribute)
AsgetSyntax(Attribute)
but this method returns a syntax with default configuration for the given attribute if there is no attribute type recorded in the system.pl.edu.icm.unity.types.basic.AttributeType
getType(java.lang.String attribute)
pl.edu.icm.unity.types.basic.AttributeType
getType(pl.edu.icm.unity.types.basic.Attribute attribute)
java.util.List<pl.edu.icm.unity.types.basic.AttributeType>
loadAttributeTypesFromResource(org.springframework.core.io.Resource f)
Loads attribute types from resource
-
-
-
Method Detail
-
getSyntax
AttributeValueSyntax<?> getSyntax(pl.edu.icm.unity.types.basic.AttributeType at)
- Parameters:
at
-- Returns:
- configured value syntax for the attribute type
-
getSyntax
AttributeValueSyntax<?> getSyntax(pl.edu.icm.unity.types.basic.Attribute attribute)
- Parameters:
attribute
-- Returns:
- a configured attribute syntax for the given attribute name
-
getSyntaxFallingBackToDefault
AttributeValueSyntax<?> getSyntaxFallingBackToDefault(pl.edu.icm.unity.types.basic.Attribute attribute)
AsgetSyntax(Attribute)
but this method returns a syntax with default configuration for the given attribute if there is no attribute type recorded in the system.- Parameters:
attribute
-- Returns:
- a configured attribute syntax for the given attribute name
-
getType
pl.edu.icm.unity.types.basic.AttributeType getType(pl.edu.icm.unity.types.basic.Attribute attribute)
- Parameters:
attribute
-- Returns:
- attribute type for the attribute name
-
getType
pl.edu.icm.unity.types.basic.AttributeType getType(java.lang.String attribute)
- Parameters:
attribute
-- Returns:
- attribute type for the attribute name
-
getAttributeTypes
java.util.Collection<pl.edu.icm.unity.types.basic.AttributeType> getAttributeTypes()
-
loadAttributeTypesFromResource
java.util.List<pl.edu.icm.unity.types.basic.AttributeType> loadAttributeTypesFromResource(org.springframework.core.io.Resource f)
Loads attribute types from resource- Parameters:
f
-- Returns:
-
getAttibuteTypeResourcesFromClasspathDir
java.util.List<org.springframework.core.io.Resource> getAttibuteTypeResourcesFromClasspathDir()
Get attribute type resource from classpath resource dir- Returns:
-
-