public class CmsInheritanceReferenceParser
extends java.lang.Object
构造器和说明 |
---|
CmsInheritanceReferenceParser(CmsObject cms)
Creates a new parser instance.
|
限定符和类型 | 方法和说明 |
---|---|
CmsInheritanceReference |
getReference(java.util.Locale locale)
Gets the parsed reference for a locale.
|
void |
parse(CmsResource resource)
Parses a given resource.
|
protected void |
parse(CmsXmlContent content)
Parses the given XML content.
|
protected CmsInheritanceReference |
parseReference(I_CmsXmlContentLocation location,
java.util.Locale locale)
Extracts a single inheritance reference from a location in the XML content.
|
public CmsInheritanceReferenceParser(CmsObject cms)
cms
- the CMS context to usepublic CmsInheritanceReference getReference(java.util.Locale locale)
Gets the reference object for the locale, and uses the reference for the English language as a fallback.
locale
- the locale to get the reference forpublic void parse(CmsResource resource) throws CmsException
resource
- the resource to parseCmsException
- if something goes wrongprotected void parse(CmsXmlContent content)
content
- the XML content to parseprotected CmsInheritanceReference parseReference(I_CmsXmlContentLocation location, java.util.Locale locale)
This method may return null if the given location doesn't contain a valid inheritance container reference.
location
- the location from which to parse the inheritance referencelocale
- the locale from which to parse the inheritance reference