Package org.w3c.css.sac

Examples of org.w3c.css.sac.CSSException


     * SelectorFactory#createProcessingInstructionSelector(String,String)}.
     */   
    public ProcessingInstructionSelector createProcessingInstructionSelector
  (String target,
   String data) throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here


     * <b>SAC</b>: Implements {@link
     * org.w3c.css.sac.SelectorFactory#createCommentSelector(String)}.
     */   
    public CharacterDataSelector createCommentSelector(String data)
  throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

     * ConditionFactory#createOrCondition(Condition,Condition)}.
     */   
    public CombinatorCondition createOrCondition(Condition first,
                                                 Condition second)
  throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

     * <b>SAC</b>: Implements {@link
     * org.w3c.css.sac.ConditionFactory#createNegativeCondition(Condition)}.
     */   
    public NegativeCondition createNegativeCondition(Condition condition)
  throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

     */   
    public PositionalCondition createPositionalCondition(int position,
               boolean typeNode,
               boolean type)
  throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

    /**
     * <b>SAC</b>: Implements {@link
     * org.w3c.css.sac.ConditionFactory#createOnlyChildCondition()}.
     */   
    public Condition createOnlyChildCondition() throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

    /**
     * <b>SAC</b>: Implements {@link
     * org.w3c.css.sac.ConditionFactory#createOnlyTypeCondition()}.
     */   
    public Condition createOnlyTypeCondition() throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

     * <b>SAC</b>: Implements {@link
     * org.w3c.css.sac.ConditionFactory#createContentCondition(String)}.
     */   
    public ContentCondition createContentCondition(String data)
        throws CSSException {
  throw new CSSException("Not implemented in CSS2");
    }
View Full Code Here

          // This is a call to value()
          List<Value> params = new ArrayList<Value>();
          extractValueOf(params, value.getParameters());

          if (params.size() != 1 && params.size() != 3) {
            throw new CSSException(CSSException.SAC_SYNTAX_ERR,
                "Incorrect number of parameters to " + VALUE_FUNCTION_NAME,
                null);
          }

          Value dotPathValue = params.get(0);
          String dotPath = maybeUnquote(((StringValue) dotPathValue).getValue());
          String suffix = params.size() == 3
              ? maybeUnquote(((StringValue) params.get(2)).getValue()) : "";

          return new DotPathValue(dotPath, suffix);
        } else if (value.getFunctionName().equals(LITERAL_FUNCTION_NAME)) {
          // This is a call to value()
          List<Value> params = new ArrayList<Value>();
          extractValueOf(params, value.getParameters());

          if (params.size() != 1) {
            throw new CSSException(CSSException.SAC_SYNTAX_ERR,
                "Incorrect number of parameters to " + LITERAL_FUNCTION_NAME,
                null);
          }

          Value expression = params.get(0);
          if (!(expression instanceof StringValue)) {
            throw new CSSException(CSSException.SAC_SYNTAX_ERR,
                "The single argument to " + LITERAL_FUNCTION_NAME
                    + " must be a string value", null);
          }

          String s = maybeUnquote(((StringValue) expression).getValue());
View Full Code Here

      } catch (IOException e) {
        assert false : "Should never happen";
      }

      if (values.size() < 2) {
        throw new CSSException(CSSException.SAC_SYNTAX_ERR,
            "@def rules must specify an identifier and one or more values",
            null);
      }

      IdentValue defName = values.get(0).isIdentValue();

      if (defName == null) {
        throw new CSSException(CSSException.SAC_SYNTAX_ERR,
            "First lexical unit must be an identifier", null);
      }

      /*
       * Replace any references to previously-seen @def constructs. We do
View Full Code Here

TOP

Related Classes of org.w3c.css.sac.CSSException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.