Package ro.sync.ecss.extensions.dita
Class DITAValSchemaManagerFilter
java.lang.Object
ro.sync.contentcompletion.xml.SchemaManagerFilterBase
ro.sync.ecss.extensions.dita.DITAValSchemaManagerFilter
- All Implemented Interfaces:
SchemaManagerFilter
,Extension
@API(type=INTERNAL,
src=PUBLIC)
public class DITAValSchemaManagerFilter
extends SchemaManagerFilterBase
Schema manager filter which provides the available keyref + condition values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterAttributes
(List<CIAttribute> attributes, WhatAttributesCanGoHereContext context) Filter attributes.filterAttributeValues
(List<CIValue> attributeValues, WhatPossibleValuesHasAttributeContext context) Filter attribute values.filterElements
(List<CIElement> elements, WhatElementsCanGoHereContext context) Filter elements.filterElementValues
(List<CIValue> elementValues, Context context) Filter element values.Methods inherited from class ro.sync.contentcompletion.xml.SchemaManagerFilterBase
getAttributeDescription, getElementDescription, invalidate
-
Constructor Details
-
DITAValSchemaManagerFilter
public DITAValSchemaManagerFilter()
-
-
Method Details
-
filterAttributeValues
public List<CIValue> filterAttributeValues(List<CIValue> attributeValues, WhatPossibleValuesHasAttributeContext context) Filter attribute values.- Parameters:
attributeValues
- The list of attribute values (CIValue
) to be filtered.context
- TheWhatPossibleValuesHasAttributeContext
where the list of attribute values is requested.- Returns:
- The filtered list of
CIValue
representing possible values of the attribute ornull
if all values are rejected by the filter. - See Also:
-
filterAttributes
public List<CIAttribute> filterAttributes(List<CIAttribute> attributes, WhatAttributesCanGoHereContext context) Filter attributes.- Parameters:
attributes
- The list of attributes (CIAttribute
) to be filtered. Can be NULLcontext
- TheWhatAttributesCanGoHereContext
where the list of attributes is requested.- Returns:
- The filtered list of
CIAttribute
ornull
if all attributes are rejected by the filter. - See Also:
-
filterElementValues
Filter element values. -
filterElements
public List<CIElement> filterElements(List<CIElement> elements, WhatElementsCanGoHereContext context) Filter elements.- Parameters:
elements
- The list of elements (CIElement
) to be filtered.context
- TheWhatElementsCanGoHereContext
where the list of elements is requested. Ifnull
then the given list of content completion elements contains global elements.- Returns:
- The filtered list of
CIElement
ornull
if all elements are rejected by the filter. - See Also:
-
getDescription
- Returns:
- The description of the extension.
- See Also:
-