java.lang.Object
org.jorigin.lang.xml.LangResourceContentHandler
- All Implemented Interfaces:
ContentHandler
A content handler for the lang resource XML files.
- Since:
- 1.0.0
- Version:
- "1.0.14" - b202111241200L
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringThe name of the resource key attributestatic StringThe name of the resource value attribute.static StringThe name of the resource XML elementstatic StringThe name of the resource list XML elementprotected LocatorHold onto the locator for location information -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String qName) voidendPrefixMapping(String prefix) Get the resources attached to this content handler.voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidstartElement(String uri, String localName, String qName, Attributes atts) voidstartPrefixMapping(String prefix, String uri)
-
Field Details
-
ELEMENT_RESOURCES
The name of the resource list XML element -
ELEMENT_RESOURCE
The name of the resource XML element -
ATTRIBUTE_KEY
The name of the resource key attribute -
ATTRIBUTE_VALUE
The name of the resource value attribute. -
locator
Hold onto the locator for location information
-
-
Constructor Details
-
LangResourceContentHandler
public LangResourceContentHandler()
-
-
Method Details
-
getResources
Get the resources attached to this content handler.- Returns:
- the resources attached to this content handler.
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-