public class XIncludeContext extends Object
Constructor and Description |
---|
XIncludeContext(XIncProcConfiguration configuration)
Instantiates a new XIncludeContext.
|
Modifier and Type | Method and Description |
---|---|
void |
addBaseURIPath(URI basePath)
Add base uRI path.
|
void |
addInInclusionChain(URI path,
String pointer)
Add in inclusion chain.
|
List<URI> |
getBaseURIPaths()
Gets base uRI paths.
|
XIncProcConfiguration |
getConfiguration()
Gets configuration.
|
URI |
getCurrentBaseURI()
Gets current base uRI.
|
Exception |
getCurrentException()
Gets current exception.
|
URI |
getHrefURI()
Gets href uRI.
|
URI |
getInitialBaseURI()
Gets initial base uRI.
|
String |
getLanguage()
Gets language.
|
URI |
getSourceURI()
Gets source uRI.
|
boolean |
isBaseFixup()
Is base fixup.
|
boolean |
isLanguageFixup()
Is language fixup.
|
static XIncludeContext |
newContext(XIncludeContext contextToCopy)
Create a new context by deep copy of an existant one.
|
void |
removeFromInclusionChain()
Remove from inclusion chain.
|
void |
setCurrentException(Exception currentException)
Sets current exception.
|
void |
setHrefURI(URI hrefURI)
Sets href uRI.
|
void |
setInitialBaseURI(URI initialBaseURI)
Sets initial base uRI.
|
void |
setLanguage(String language)
Sets language.
|
void |
setSourceURI(URI sourceURI)
Sets source uRI.
|
String |
toString() |
void |
updateContextWhenEndElement()
Update context when end element.
|
void |
updateContextWithElementAttributes(Attributes attributes)
Update context with element attributes.
|
public XIncludeContext(XIncProcConfiguration configuration)
configuration
- the configuration to which context is attachedpublic static XIncludeContext newContext(XIncludeContext contextToCopy)
contextToCopy
- the context to copypublic XIncProcConfiguration getConfiguration()
public void updateContextWithElementAttributes(Attributes attributes) throws XIncludeFatalException
attributes
- the attributesXIncludeFatalException
- if attribute xml:base is invalidpublic void updateContextWhenEndElement()
public boolean isLanguageFixup()
public boolean isBaseFixup()
public URI getSourceURI()
public void setSourceURI(URI sourceURI)
sourceURI
- the source uRIpublic Exception getCurrentException()
public void setCurrentException(Exception currentException)
currentException
- the current exceptionpublic void addInInclusionChain(URI path, String pointer) throws XIncludeFatalException
path
- the pathpointer
- the pointerXIncludeFatalException
- the x include fatal exceptionpublic void removeFromInclusionChain()
public URI getInitialBaseURI()
public void setInitialBaseURI(URI initialBaseURI)
initialBaseURI
- the initial base uRIpublic void addBaseURIPath(URI basePath)
basePath
- the base pathpublic URI getCurrentBaseURI()
public URI getHrefURI()
public void setHrefURI(URI hrefURI)
hrefURI
- the href uRIpublic String getLanguage()
public void setLanguage(String language)
language
- the languageCopyright © 2011–2019. All rights reserved.