Java Code Examples for org.w3c.css.sac.CSSException#SAC_NOT_SUPPORTED_ERR

The following examples show how to use org.w3c.css.sac.CSSException#SAC_NOT_SUPPORTED_ERR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Creates a direct adjacent selector.
 *
 * @param child    the child selector
 * @param adjacent the direct adjacent selector
 * @return the combinator selector.
 * @throws CSSException If this selector is not supported.
 */
public SiblingSelector createDirectAdjacentSelector( short nodeType,
                                                     Selector child,
                                                     SimpleSelector directAdjacent )
  throws CSSException {
  if ( nodeType != 1 ) {
    throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
  } else {
    return new DirectAdjacentSelectorImpl( child, directAdjacent );
  }
}
 
Example 2
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Creates a pseudo element selector.
 *
 * @param pseudoName the pseudo element name. <code>NULL</code> if this element selector can match any pseudo
 *                   element.</p>
 * @return the element selector
 * @throws CSSException If this selector is not supported.
 */
public ElementSelector createPseudoElementSelector( String namespaceURI,
                                                    String pseudoName )
  throws CSSException {
  if ( namespaceURI != null ) {
    throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
  } else {
    return new PseudoElementSelectorImpl( pseudoName );
  }
}
 
Example 3
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * creates an attribute condition
 *
 * @param localName    the localName of the attribute
 * @param namespaceURI the namespace URI of the attribute
 * @param specified    <code>true</code> if the attribute must be specified in the document.
 * @param value        the value of this attribute.
 * @return An attribute condition
 * @throws CSSException if this exception is not supported.
 */
public AttributeCondition createAttributeCondition( String localName,
                                                    String namespaceURI,
                                                    boolean specified,
                                                    String value )
  throws CSSException {
  if ( ( namespaceURI != null ) || specified ) {
    throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
  } else {
    return new AttributeConditionImpl( localName, value );
  }
}
 
Example 4
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Creates a "one of" attribute condition
 *
 * @param localName    the localName of the attribute
 * @param namespaceURI the namespace URI of the attribute
 * @param specified    <code>true</code> if the attribute must be specified in the document.
 * @param value        the value of this attribute.
 * @return A "one of" attribute condition
 * @throws CSSException if this exception is not supported.
 */
public AttributeCondition createOneOfAttributeCondition( String localName,
                                                         String namespaceURI,
                                                         boolean specified,
                                                         String value )
  throws CSSException {
  if ( ( namespaceURI != null ) || specified ) {
    throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
  } else {
    return new OneOfAttributeConditionImpl( localName, value );
  }
}
 
Example 5
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Creates a "begin hyphen" attribute condition
 *
 * @param localName    the localName of the attribute
 * @param namespaceURI the namespace URI of the attribute
 * @param specified    <code>true</code> if the attribute must be specified in the document.
 * @param value        the value of this attribute.
 * @return A "begin hyphen" attribute condition
 * @throws CSSException if this exception is not supported.
 */
public AttributeCondition createBeginHyphenAttributeCondition( String localName,
                                                               String namespaceURI,
                                                               boolean specified,
                                                               String value )
  throws CSSException {
  if ( ( namespaceURI != null ) || specified ) {
    throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
  } else {
    return new BeginHyphenAttributeConditionImpl( localName, value );
  }
}
 
Example 6
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 3 votes vote down vote up
/**
 * Creates a positional condition
 *
 * @param position the position of the node in the list.
 * @param typeNode <code>true</code> if the list should contain only nodes of the same type (element, text node,
 *                 ...).
 * @param type     <code>true</code> true if the list should contain only nodes of the same node (for element, same
 *                 localName and same namespaceURI).
 * @return A positional condition
 * @throws CSSException if this exception is not supported.
 */
public PositionalCondition createPositionalCondition( int position,
                                                      boolean typeNode,
                                                      boolean type )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 7
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 3 votes vote down vote up
/**
 * Creates a processing instruction node selector.
 *
 * @param target the target
 * @param data   the data
 * @return the processing instruction node selector
 * @throws CSSException If this selector is not supported.
 */
public ProcessingInstructionSelector
createProcessingInstructionSelector( String target,
                                     String data )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 8
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 3 votes vote down vote up
/**
 * Creates an element selector.
 *
 * @param namespaceURI the <a href="http://www.w3.org/TR/REC-xml-names/#dt-NSName">namespace URI</a> of the element
 *                     selector.
 * @param tagName      the <a href="http://www.w3.org/TR/REC-xml-names/#NT-LocalPart">local part</a> of the element
 *                     name. <code>NULL</code> if this element selector can match any element.</p>
 * @return the element selector
 * @throws CSSException If this selector is not supported.
 */
public ElementSelector createElementSelector( String namespaceURI, String localName )
  throws CSSException {
  if ( namespaceURI != null ) {
    throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
  } else {
    return new ElementSelectorImpl( localName );
  }
}
 
Example 9
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates an any node selector.
 *
 * @return the any node selector.
 * @throws CSSException If this selector is not supported.
 */
public SimpleSelector createAnyNodeSelector() throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 10
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a comment node selector.
 *
 * @param data the data
 * @return the comment node selector
 * @throws CSSException If this selector is not supported.
 */
public CharacterDataSelector createCommentSelector( String data )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 11
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a cdata section node selector.
 *
 * @param data the data
 * @return the cdata section node selector
 * @throws CSSException If this selector is not supported.
 */
public CharacterDataSelector createCDataSectionSelector( String data )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 12
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a text node selector.
 *
 * @param data the data
 * @return the text node selector
 * @throws CSSException If this selector is not supported.
 */
public CharacterDataSelector createTextNodeSelector( String data )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 13
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates an negative selector.
 *
 * @param selector a selector.
 * @return the negative selector.
 * @throws CSSException If this selector is not supported.
 */
public NegativeSelector createNegativeSelector( SimpleSelector selector )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 14
Source File: SelectorFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates an root node selector.
 *
 * @return the root node selector.
 * @throws CSSException If this selector is not supported.
 */
public SimpleSelector createRootNodeSelector() throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 15
Source File: Parser.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * @throws CSSException Not yet implemented
 * @@TODO
 */
public void setLocale( Locale locale ) throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 16
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a content condition
 *
 * @param data the data in the content
 * @return A content condition
 * @throws CSSException if this exception is not supported.
 */
public ContentCondition createContentCondition( String data )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 17
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a "only one" type condition
 *
 * @return A "only one" type condition
 * @throws CSSException if this exception is not supported.
 */
public Condition createOnlyTypeCondition() throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 18
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a "only one" child condition
 *
 * @return A "only one" child condition
 * @throws CSSException if this exception is not supported.
 */
public Condition createOnlyChildCondition() throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 19
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates a negative condition
 *
 * @param condition the condition
 * @return A negative condition
 * @throws CSSException if this exception is not supported.
 */
public NegativeCondition createNegativeCondition( Condition condition )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}
 
Example 20
Source File: ConditionFactoryImpl.java    From pentaho-reporting with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Creates an or condition
 *
 * @param first  the first condition
 * @param second the second condition
 * @return A combinator condition
 * @throws CSSException if this exception is not supported.
 */
public CombinatorCondition createOrCondition( Condition first,
                                              Condition second )
  throws CSSException {
  throw new CSSException( CSSException.SAC_NOT_SUPPORTED_ERR );
}