Package org.uberfire.workbench.type
Class AnyResourceTypeDefinition
- java.lang.Object
-
- org.uberfire.workbench.type.AnyResourceTypeDefinition
-
- All Implemented Interfaces:
ResourceTypeDefinition
public class AnyResourceTypeDefinition extends Object implements ResourceTypeDefinition
-
-
Constructor Summary
Constructors Constructor Description AnyResourceTypeDefinition()AnyResourceTypeDefinition(Category category)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Path path)Indicates if the current parameter path matched the current resource typeCategorygetCategory()Defines the category for each resource.StringgetDescription()A description of the resource typeStringgetPrefix()Resource prefixintgetPriority()Defines the resource priority in terms of resource resolutionStringgetShortName()A short name of the resource typeStringgetSimpleWildcardPattern()A simple (and maybe not very accurate) wildcard pattern to search for this type of resource.StringgetSuffix()Resource suffix-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uberfire.workbench.type.ResourceTypeDefinition
getDiffMode
-
-
-
-
Constructor Detail
-
AnyResourceTypeDefinition
public AnyResourceTypeDefinition()
-
AnyResourceTypeDefinition
public AnyResourceTypeDefinition(Category category)
-
-
Method Detail
-
getShortName
public String getShortName()
Description copied from interface:ResourceTypeDefinitionA short name of the resource type- Specified by:
getShortNamein interfaceResourceTypeDefinition- Returns:
- the short name
-
getDescription
public String getDescription()
Description copied from interface:ResourceTypeDefinitionA description of the resource type- Specified by:
getDescriptionin interfaceResourceTypeDefinition- Returns:
- the description
-
getPrefix
public String getPrefix()
Description copied from interface:ResourceTypeDefinitionResource prefix- Specified by:
getPrefixin interfaceResourceTypeDefinition- Returns:
- the prefix
-
getSuffix
public String getSuffix()
Description copied from interface:ResourceTypeDefinitionResource suffix- Specified by:
getSuffixin interfaceResourceTypeDefinition- Returns:
- the prefix
-
getPriority
public int getPriority()
Description copied from interface:ResourceTypeDefinitionDefines the resource priority in terms of resource resolution- Specified by:
getPriorityin interfaceResourceTypeDefinition- Returns:
- the priority
-
getSimpleWildcardPattern
public String getSimpleWildcardPattern()
Description copied from interface:ResourceTypeDefinitionA simple (and maybe not very accurate) wildcard pattern to search for this type of resource. This is only used in order to optimize index and search.- Specified by:
getSimpleWildcardPatternin interfaceResourceTypeDefinition- Returns:
- the wildcard pattern
-
accept
public boolean accept(Path path)
Description copied from interface:ResourceTypeDefinitionIndicates if the current parameter path matched the current resource type- Specified by:
acceptin interfaceResourceTypeDefinition- Returns:
- true if matches, otherwise false
-
getCategory
public Category getCategory()
Description copied from interface:ResourceTypeDefinitionDefines the category for each resource. If no category is defined,Undefinedshould be returned- Specified by:
getCategoryin interfaceResourceTypeDefinition- Returns:
- the resource category
-
-