@API(type=EXTENDABLE, src=PUBLIC) public abstract class StyleGuideSchemaManagerFilterBase extends SchemaManagerFilterBase
Modifier and Type | Field and Description |
---|---|
protected static ro.sync.exml.MessageBundle |
messages
The messages resource bundle.
|
Constructor and Description |
---|
StyleGuideSchemaManagerFilterBase()
Constructor.
|
StyleGuideSchemaManagerFilterBase(java.lang.String locationOfMappingFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CIAttribute> |
filterAttributes(java.util.List<CIAttribute> attributes,
WhatAttributesCanGoHereContext context)
Filters the attributes proposed by the editor content completion schema manager.
|
java.util.List<CIElement> |
filterElements(java.util.List<CIElement> elements,
WhatElementsCanGoHereContext context)
Filters the elements proposed by the editor content completion schema manager.
|
CIElement |
getElementDescription(CIElement element,
Context ctxt)
Get element description, contributes HTML annotation to it..
|
protected java.lang.String |
getMappingFileLocation(Context context)
Get the location for the mapping between elements name and their documentation.
|
void |
invalidate()
Invalidates any cached data.
|
protected boolean |
shouldRedirectThroughOxygenWebSite()
If
true will redirect all links through the Oxygen web site. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filterAttributeValues, filterElementValues
getDescription
protected static final ro.sync.exml.MessageBundle messages
public StyleGuideSchemaManagerFilterBase()
public StyleGuideSchemaManagerFilterBase(java.lang.String locationOfMappingFile)
locationOfMappingFile
- Location of the mapping file.public java.util.List<CIElement> filterElements(java.util.List<CIElement> elements, WhatElementsCanGoHereContext context)
SchemaManagerFilter
person
is the current CIElement
,
and the list of children contains the elements name
and address
, the result of choosing
the person entry from the content completion window
will be the insertion of the following sequence:
<person>
<name>...</name>
<address>...</address>
</person>
Given this example, the original name
CIElement can be replaced
by a new one which returns a list with two new CIElements, firstName
and
lastName
, on the CIElement.getGuessElements()
method call.
The new generated sequence would be:
<person>
<name>
<firstName>...</firstName>
<lastName>...</lastName>
</name>
<address>...</address>
</person>
elements
- The list of elements (CIElement
) to be filtered.context
- The WhatElementsCanGoHereContext
where the list of
elements is requested.
If null
then the given list of content completion elements contains
global elements.CIElement
or null
if all elements
are rejected by the filter.SchemaManagerFilter.filterElements(java.util.List, ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext)
protected java.lang.String getMappingFileLocation(Context context)
context
- The current elements context.public java.util.List<CIAttribute> filterAttributes(java.util.List<CIAttribute> attributes, WhatAttributesCanGoHereContext context)
SchemaManagerFilter
attributes
- The list of attributes (CIAttribute
) to be filtered. Can be NULLcontext
- The WhatAttributesCanGoHereContext
where the list of
attributes is requested.CIAttribute
or null
if all attributes
are rejected by the filter.SchemaManagerFilter.filterAttributes(java.util.List, ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext)
public CIElement getElementDescription(CIElement element, Context ctxt)
getElementDescription
in class SchemaManagerFilterBase
element
- The CIElementctxt
- The context.public void invalidate()
SchemaManagerFilterBase
invalidate
in class SchemaManagerFilterBase
SchemaManagerFilterBase.invalidate()
protected boolean shouldRedirectThroughOxygenWebSite()
true
will redirect all links through the Oxygen web site.true
if the filter will redirect all links through the Oxygen web site.© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.