|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.extensions.xhtml.XHTMLSchemaManagerFilter
@API(type=INTERNAL, src=PUBLIC) public class XHTMLSchemaManagerFilter
XHTML implementation for schema manager filter for adding type attribute values for script and style elements in content completion proposals list.
Constructor Summary | |
---|---|
XHTMLSchemaManagerFilter()
|
Method Summary | |
---|---|
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<CIValue> |
filterAttributeValues(java.util.List<CIValue> attributeValues,
WhatPossibleValuesHasAttributeContext context)
Filters the attribute values 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. |
java.util.List<CIValue> |
filterElementValues(java.util.List<CIValue> elementValues,
Context context)
Filters the element values proposed by the editor content completion schema manager. |
java.lang.String |
getDescription()
|
static java.lang.String |
getLocalName(java.lang.String qName)
Get the local name from an qualified element or attribute name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XHTMLSchemaManagerFilter()
Method Detail |
---|
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>
filterElements
in interface SchemaManagerFilter
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)
public java.util.List<CIAttribute> filterAttributes(java.util.List<CIAttribute> attributes, WhatAttributesCanGoHereContext context)
SchemaManagerFilter
filterAttributes
in interface 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 java.util.List<CIValue> filterAttributeValues(java.util.List<CIValue> attributeValues, WhatPossibleValuesHasAttributeContext context)
SchemaManagerFilter
filterAttributeValues
in interface SchemaManagerFilter
attributeValues
- The list of attribute values (CIValue
) to be filtered.context
- The WhatPossibleValuesHasAttributeContext
where the
list of attribute values is requested.
CIValue
representing possible values of
the attribute or null
if all values are rejected by the filter.SchemaManagerFilter.filterAttributeValues(java.util.List, ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext)
public static java.lang.String getLocalName(java.lang.String qName)
qName
- Qualified name.
public java.util.List<CIValue> filterElementValues(java.util.List<CIValue> elementValues, Context context)
SchemaManagerFilter
filterElementValues
in interface SchemaManagerFilter
elementValues
- The list of element values (CIValue
) to be filtered.context
- The Context
where the list of element values is requested.
CIValue
representing the possible values
of the element or null
if all values are rejected by the filter.SchemaManagerFilter.filterElementValues(java.util.List, ro.sync.contentcompletion.xml.Context)
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |