|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.registry.RegistryUtil
public class RegistryUtil
Constructor Summary | |
---|---|
RegistryUtil()
|
Method Summary | |
---|---|
static FacesProperty |
createFakeProperty(java.lang.String name,
java.lang.Class<?> propertyClass)
|
static FacesComplexDefinition |
getComplexParent(FacesComplexDefinition child)
Returns the FacesComplexDefinition's parent on the assumption that it supports the contract of it's parent always being a FacesComplexDefinition (or null). |
static FacesComponentDefinition |
getComponentParent(FacesComponentDefinition child)
Returns the FacesComponentDefinition's parent on the assumption that it supports the contract of it's parent always being a FacesComponentDefinition (or null). |
static java.lang.String |
getDefaultPrefix(FacesDefinition def)
Gets the default-prefix associated with the given namespace-uri, or null . |
static java.util.Collection<FacesProperty> |
getDefinedProperties(FacesDefinition def)
|
static FacesComplexDefinition |
getFirstComplexDefinition(FacesRegistry reg,
java.lang.Class<?> javaClass)
|
static FacesLibrary |
getLibrary(FacesDefinition def)
|
static FacesProject |
getProject(FacesDefinition def)
|
static java.util.Collection<FacesProperty> |
getProperties(FacesDefinition def)
|
static java.util.Collection<FacesProperty> |
getProperties(FacesDefinition def,
java.util.Collection<java.lang.String> names)
|
static FacesRegistry |
getRegistry(FacesDefinition def)
The registry that the definition is defined in. |
static FacesRegistry |
getRegistry(FacesLibraryFragment file)
|
static java.lang.String |
getRegistryTypeName(FacesSharableRegistry reg)
Non-localized string names for the registry types, like FacesSharableRegistry.TYPE_APPLICATION . |
static java.lang.String |
getRendererId(java.lang.String rendererType,
java.lang.String componentFamily)
Computes a FacesRendererDefinition 's id from it's rendererType
and componentFamily |
static java.lang.String |
getRendererKey(java.lang.String componentFamily,
java.lang.String rendererType)
Computes a FacesRendererDefinition 's id from it's rendererType
and componentFamily |
static java.util.Map<java.lang.String,java.lang.String> |
getRenderKitAliasToIdMap(FacesRegistry reg)
Map of renderKitAlias to Id, also includes each id mapped to itself. |
static FacesRenderKitLibrary |
getRenderKitByAlias(FacesRegistry reg,
java.lang.String alias)
Returns a FacesRenderKitLibrary in the specified registry where
FacesRenderKitLibrary.isRenderKitAlias(String) is
true for the given String alias. |
static java.lang.String |
getRenderKitId(FacesRendererDefinition renderer)
|
static java.util.List<FacesDefinition> |
getSubstitutableDefinitions(FacesDefinition ancestor,
FacesRegistry reg)
Returns an iterator over all definitions that can be substituted for the specified definition. |
static boolean |
isGeneric(FacesSimpleProperty prop)
Returns true if FacesSimpleProperty.getType() returns a type for
which FacesSimpleTypes.isGeneric(int) is true . |
static boolean |
isHasLocalClassDef(FacesSharableRegistry reg)
|
static boolean |
isItemPrimitive(FacesContainerProperty container)
True if the itemProperty is a FacesSimpleProperty and it's type is primitive. |
static boolean |
isPrimitive(FacesSimpleProperty prop)
Returns true if FacesSimpleProperty.getType() returns a type for
which FacesSimpleTypes.isPrimitive(int) is true . |
static boolean |
isPrimitiveObject(FacesSimpleProperty prop)
Returns true if FacesSimpleProperty.getType() returns a type for
which FacesSimpleTypes.isPrimitiveObject(int) is true . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryUtil()
Method Detail |
---|
public static boolean isPrimitive(FacesSimpleProperty prop)
FacesSimpleProperty.getType()
returns a type for
which FacesSimpleTypes.isPrimitive(int)
is true
.
prop
- the simple property whose type is to be checked.
true
if the property is primitive.
java.lang.IllegalArgumentException
- if the parameter is null.public static boolean isPrimitiveObject(FacesSimpleProperty prop)
FacesSimpleProperty.getType()
returns a type for
which FacesSimpleTypes.isPrimitiveObject(int)
is true
.
prop
- the simple property whose type is to be checked.
true
if the property is a known 'primitive' object.
java.lang.IllegalArgumentException
- if the parameter is null.public static boolean isGeneric(FacesSimpleProperty prop)
FacesSimpleProperty.getType()
returns a type for
which FacesSimpleTypes.isGeneric(int)
is true
.
prop
- the simple property whose type is to be checked.
true
if the property is generic.
java.lang.IllegalArgumentException
- if the parameter is null.public static FacesProject getProject(FacesDefinition def)
def
-
public static FacesRegistry getRegistry(FacesDefinition def)
def
-
public static boolean isItemPrimitive(FacesContainerProperty container)
container
-
public static FacesComplexDefinition getComplexParent(FacesComplexDefinition child)
child
-
public static FacesComponentDefinition getComponentParent(FacesComponentDefinition child)
child
-
public static java.util.List<FacesDefinition> getSubstitutableDefinitions(FacesDefinition ancestor, FacesRegistry reg)
ancestor
- reg
-
public static FacesRegistry getRegistry(FacesLibraryFragment file)
public static FacesLibrary getLibrary(FacesDefinition def)
def
-
public static java.lang.String getRenderKitId(FacesRendererDefinition renderer)
renderer
-
public static FacesRenderKitLibrary getRenderKitByAlias(FacesRegistry reg, java.lang.String alias)
FacesRenderKitLibrary
in the specified registry where
FacesRenderKitLibrary.isRenderKitAlias(String)
is
true
for the given String alias.
reg
- alias
-
public static java.util.Collection<FacesProperty> getProperties(FacesDefinition def)
public static java.util.Collection<FacesProperty> getDefinedProperties(FacesDefinition def)
public static java.util.Collection<FacesProperty> getProperties(FacesDefinition def, java.util.Collection<java.lang.String> names)
public static FacesComplexDefinition getFirstComplexDefinition(FacesRegistry reg, java.lang.Class<?> javaClass)
public static java.lang.String getDefaultPrefix(FacesDefinition def)
null
.
public static java.lang.String getRendererId(java.lang.String rendererType, java.lang.String componentFamily)
FacesRendererDefinition
's id from it's rendererType
and componentFamily
public static java.lang.String getRendererKey(java.lang.String componentFamily, java.lang.String rendererType)
FacesRendererDefinition
's id from it's rendererType
and componentFamily
public static FacesProperty createFakeProperty(java.lang.String name, java.lang.Class<?> propertyClass)
public static boolean isHasLocalClassDef(FacesSharableRegistry reg)
public static java.util.Map<java.lang.String,java.lang.String> getRenderKitAliasToIdMap(FacesRegistry reg)
reg
-
public static java.lang.String getRegistryTypeName(FacesSharableRegistry reg)
FacesSharableRegistry.TYPE_APPLICATION
.
reg
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |