Interface AttributeTypeSupport
public interface AttributeTypeSupport
API helping to manipulate attributes, used internally
- Author:
- K. Benedyczak
-
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.core.io.Resource>Get attribute type resource from classpath resource dirCollection<pl.edu.icm.unity.types.basic.AttributeType>getSyntax(pl.edu.icm.unity.types.basic.Attribute attribute) getSyntax(pl.edu.icm.unity.types.basic.AttributeType at) 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.AttributeTypepl.edu.icm.unity.types.basic.AttributeTypegetType(pl.edu.icm.unity.types.basic.Attribute attribute) getUnconfiguredSyntax(String syntaxId) List<pl.edu.icm.unity.types.basic.AttributeType>loadAttributeTypesFromResource(org.springframework.core.io.Resource f) Loads attribute types from resource
-
Method Details
-
getSyntax
- Returns:
- configured value syntax for the attribute type
-
getSyntax
- 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.- Returns:
- a configured attribute syntax for the given attribute name
-
getUnconfiguredSyntax
- Returns:
- returned syntax is a default instance
-
getType
pl.edu.icm.unity.types.basic.AttributeType getType(pl.edu.icm.unity.types.basic.Attribute attribute) - Returns:
- attribute type for the attribute name
-
getType
- Returns:
- attribute type for the attribute name
-
getAttributeTypes
Collection<pl.edu.icm.unity.types.basic.AttributeType> getAttributeTypes() -
loadAttributeTypesFromResource
List<pl.edu.icm.unity.types.basic.AttributeType> loadAttributeTypesFromResource(org.springframework.core.io.Resource f) Loads attribute types from resource -
getAttibuteTypeResourcesFromClasspathDir
List<org.springframework.core.io.Resource> getAttibuteTypeResourcesFromClasspathDir()Get attribute type resource from classpath resource dir
-