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 List<org.springframework.core.io.Resource>
getAttibuteTypeResourcesFromClasspathDir()
Get attribute type resource from classpath resource dirCollection<AttributeType>
getAttributeTypes()
AttributeValueSyntax<?>
getSyntax(Attribute attribute)
AttributeValueSyntax<?>
getSyntax(AttributeType at)
AttributeValueSyntax<?>
getSyntaxFallingBackToDefault(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.AttributeType
getType(String attribute)
AttributeType
getType(Attribute attribute)
AttributeValueSyntax<?>
getUnconfiguredSyntax(String syntaxId)
List<AttributeType>
loadAttributeTypesFromResource(org.springframework.core.io.Resource f)
Loads attribute types from resource
-
-
-
Method Detail
-
getSyntax
AttributeValueSyntax<?> getSyntax(AttributeType at)
- Returns:
- configured value syntax for the attribute type
-
getSyntax
AttributeValueSyntax<?> getSyntax(Attribute attribute)
- Returns:
- a configured attribute syntax for the given attribute name
-
getSyntaxFallingBackToDefault
AttributeValueSyntax<?> getSyntaxFallingBackToDefault(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
AttributeValueSyntax<?> getUnconfiguredSyntax(String syntaxId)
- Returns:
- returned syntax is a default instance
-
getType
AttributeType getType(Attribute attribute)
- Returns:
- attribute type for the attribute name
-
getType
AttributeType getType(String attribute)
- Returns:
- attribute type for the attribute name
-
getAttributeTypes
Collection<AttributeType> getAttributeTypes()
-
loadAttributeTypesFromResource
List<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
-
-