public class FacesConfigInfo
extends java.lang.Object
Wrapper around the /WEB-INF/faces-config.xml
, if present,
to expose information relevant to the intialization of the runtime.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ABSOLUTE_ORDERING |
private java.util.List<java.lang.String> |
absoluteOrdering |
private boolean |
isWebInfFacesConfig |
private static java.util.logging.Logger |
LOGGER |
private boolean |
metadataComplete |
private static java.lang.String |
NAME |
private static java.lang.String |
ORDERING |
private static java.lang.String |
OTHERS |
private double |
version |
Constructor and Description |
---|
FacesConfigInfo(DocumentInfo documentInfo)
Creates a new
WebInfFacesConfig document based
on the provided Document . |
Modifier and Type | Method and Description |
---|---|
private void |
extractOrdering(org.w3c.dom.Document document) |
java.util.List<java.lang.String> |
getAbsoluteOrdering() |
private java.lang.String |
getNodeText(org.w3c.dom.Node node)
Return the textual content, if any, of the provided
Node . |
private double |
getVersion(org.w3c.dom.Document document) |
boolean |
isMetadataComplete() |
private boolean |
isMetadataComplete(org.w3c.dom.Document document) |
boolean |
isVersionGreaterOrEqual(double version) |
boolean |
isWebInfFacesConfig() |
private boolean |
isWebinfFacesConfig(org.w3c.dom.Document document) |
private static final java.util.logging.Logger LOGGER
private static final java.lang.String ABSOLUTE_ORDERING
private static final java.lang.String ORDERING
private static final java.lang.String NAME
private static final java.lang.String OTHERS
private double version
private boolean isWebInfFacesConfig
private boolean metadataComplete
private java.util.List<java.lang.String> absoluteOrdering
public FacesConfigInfo(DocumentInfo documentInfo)
WebInfFacesConfig
document based
on the provided Document
. If the Document
does not represent the WEB-INF/faces-config.xml
the
isWebInfFacesConfig()
method will return false
documentInfo
- DocumentInfo representing the /WEB-INF/faces-config.xml
public boolean isVersionGreaterOrEqual(double version)
version
- version to checktrue
if version
is greater or
equal to the version of the /WEB-INF/faces-config.xml
public boolean isWebInfFacesConfig()
true
if the Document
provided at
construction time represents the /WEB-INF/faces-config.xml
.public boolean isMetadataComplete()
true
if the Document
provided at
construction time represents the /WEB-INF/faces-config.xml and is
metadata complete.
public java.util.List<java.lang.String> getAbsoluteOrdering()
List
of document names that in the order that
they should be processed. The presense of the keyword "others" indicates
all documents not explicitly referenced by name in the list should be
places in the final parsing order at same location. If there are multiple
documents that aren't named and the others element is present, the
order that these documents are inserted into the final list is unspecified
at this time.private double getVersion(org.w3c.dom.Document document)
document
- document representing WEB-INF/faces-config.xml
private boolean isWebinfFacesConfig(org.w3c.dom.Document document)
document
- the Document
to inspecttrue
if the document represents the
/WEB-INF/faces-config.xml
private boolean isMetadataComplete(org.w3c.dom.Document document)
private void extractOrdering(org.w3c.dom.Document document)
private java.lang.String getNodeText(org.w3c.dom.Node node)
Node
.Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.