ro.sync.ecss.extensions.docbook
Class DocbookSchemaManagerFilter
java.lang.Object
ro.sync.contentcompletion.xml.SchemaManagerFilterBase
ro.sync.contentcompletion.xml.StyleGuideSchemaManagerFilterBase
ro.sync.ecss.extensions.docbook.DocbookSchemaManagerFilter
- All Implemented Interfaces:
- SchemaManagerFilter, ro.sync.ecss.extensions.api.Extension
@API(type=INTERNAL,
src=PUBLIC)
public class DocbookSchemaManagerFilter
- extends StyleGuideSchemaManagerFilterBase
Schema manager filter which provides the available condition values.
Method Summary |
java.util.List<ro.sync.contentcompletion.xml.CIAttribute> |
filterAttributes(java.util.List<ro.sync.contentcompletion.xml.CIAttribute> attributes,
ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext context)
Filters the attributes proposed by the editor content completion schema manager. |
java.util.List<ro.sync.contentcompletion.xml.CIValue> |
filterAttributeValues(java.util.List<ro.sync.contentcompletion.xml.CIValue> attributeValues,
ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext context)
Filters the attribute values proposed by the editor content completion schema manager. |
java.util.List<ro.sync.contentcompletion.xml.CIValue> |
filterElementValues(java.util.List<ro.sync.contentcompletion.xml.CIValue> elementValues,
ro.sync.contentcompletion.xml.Context context)
Filters the element values proposed by the editor content completion schema manager. |
java.lang.String |
getDescription()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocbookSchemaManagerFilter
public DocbookSchemaManagerFilter(java.lang.String documentTypeName)
- Constructor.
- Parameters:
documentTypeName
- The document type name
filterAttributeValues
public java.util.List<ro.sync.contentcompletion.xml.CIValue> filterAttributeValues(java.util.List<ro.sync.contentcompletion.xml.CIValue> attributeValues,
ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext context)
- Description copied from interface:
SchemaManagerFilter
- Filters the attribute values proposed by the editor content completion schema manager.
The original list of attribute values is obtained by examining the current
document schema and determining what values are permitted for the current attribute.
If the attribute type was an enumeration, then a list with the tokens of the
enumeration will be returned for that attribute.
- Parameters:
attributeValues
- The list of attribute values (CIValue
) to be filtered.context
- The WhatPossibleValuesHasAttributeContext
where the
list of attribute values is requested.
- Returns:
- The filtered list of
CIValue
representing possible values of
the attribute or null
if all values are rejected by the filter. - See Also:
SchemaManagerFilter.filterAttributeValues(java.util.List, ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext)
filterAttributes
public java.util.List<ro.sync.contentcompletion.xml.CIAttribute> filterAttributes(java.util.List<ro.sync.contentcompletion.xml.CIAttribute> attributes,
ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext context)
- Description copied from interface:
SchemaManagerFilter
- Filters the attributes proposed by the editor content completion schema manager.
The original list of attributes is obtained by examining the current document
schema and determining what attributes can be inserted in the current element
and taking into account the list of existing attributes.
- Specified by:
filterAttributes
in interface SchemaManagerFilter
- Overrides:
filterAttributes
in class StyleGuideSchemaManagerFilterBase
- Parameters:
attributes
- The list of attributes (CIAttribute
) to be filtered. Can be NULLcontext
- The WhatAttributesCanGoHereContext
where the list of
attributes is requested.
- Returns:
- The filtered list of
CIAttribute
or null
if all attributes
are rejected by the filter. - See Also:
SchemaManagerFilter.filterAttributes(java.util.List, ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext)
filterElementValues
public java.util.List<ro.sync.contentcompletion.xml.CIValue> filterElementValues(java.util.List<ro.sync.contentcompletion.xml.CIValue> elementValues,
ro.sync.contentcompletion.xml.Context context)
- Description copied from interface:
SchemaManagerFilter
- Filters the element values proposed by the editor content completion schema manager.
The original list of element values is obtained by examining the current
document schema and determining what values are permitted for the current element.
If the element type was an enumeration, then a list with the values of the
enumeration will be returned for that element.
- Parameters:
elementValues
- The list of element values (CIValue
) to be filtered.context
- The Context
where the list of element values is requested.
- Returns:
- The filtered list of
CIValue
representing the possible values
of the element or null
if all values are rejected by the filter. - See Also:
SchemaManagerFilter.filterElementValues(java.util.List, ro.sync.contentcompletion.xml.Context)
getDescription
public java.lang.String getDescription()
- See Also:
Extension.getDescription()
© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.