private boolean setStartEndProperties(String propertyName, TermList list, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { switch (list.size()) { case 0: return false; case 1: Term single = list.get(0); CSSProperty property; if (single instanceof TermIdent) { CSSProperty identProperty = genericPropertyRaw(GridStartEnd.class, null, (TermIdent) single); if (GridStartEnd.SPAN.equals(identProperty)) { return false; } else if (identProperty == GridStartEnd.AUTO || identProperty == GridStartEnd.NONE) { property = identProperty; } else { property = GridStartEnd.identificator; } } else if (single instanceof TermInteger) { property = GridStartEnd.number; } else { return false; } properties.put(propertyName, property); values.put(propertyName, single); break; default: properties.put(propertyName, GridStartEnd.component_values); values.put(propertyName, list); } return true; }
if (list.size() == 1 && (list.toArray(new Term<?>[0])[0] instanceof TermString) == false) { properties.put(names.get(FAMILY), (FontFamily) (list
if (list.size() == 1 && (list.toArray(new Term<?>[0])[0] instanceof TermString) == false) { properties.put(names.get(FAMILY), (FontFamily) (list
if (list.size() == 1 && (list.toArray(new Term<?>[0])[0] instanceof TermString) == false) { properties.put(names.get(FAMILY), (FontFamily) (list
if (list.size() == 1 && (list.toArray(new Term<?>[0])[0] instanceof TermString) == false) { properties.put(names.get(FAMILY), (FontFamily) (list
@SuppressWarnings("unused") private boolean processQuotes(Declaration d, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (d.size() == 1 && genericTermIdent(Quotes.class, d.get(0), ALLOW_INH, "quotes", properties)) { return true; } else { TermList list = tf.createList(); for (Term<?> term : d.asList()) { if (term instanceof TermString) list.add(term); else return false; } // there are pairs of quotes if (!list.isEmpty() && list.size() % 2 == 0) { properties.put("quotes", Quotes.list_values); values.put("quotes", list); return true; } return false; } }
@SuppressWarnings("unused") private boolean processQuotes(Declaration d, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (d.size() == 1 && genericTermIdent(Quotes.class, d.get(0), ALLOW_INH, "quotes", properties)) { return true; } else { TermList list = tf.createList(); for (Term<?> term : d.asList()) { if (term instanceof TermString) list.add(term); else return false; } // there are pairs of quotes if (!list.isEmpty() && list.size() % 2 == 0) { properties.put("quotes", Quotes.list_values); values.put("quotes", list); return true; } return false; } }
@SuppressWarnings("unused") private boolean processQuotes(Declaration d, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (d.size() == 1 && genericTermIdent(Quotes.class, d.get(0), ALLOW_INH, "quotes", properties)) { return true; } else { TermList list = tf.createList(); for (Term<?> term : d.asList()) { if (term instanceof TermString) list.add(term); else return false; } // there are pairs of quotes if (!list.isEmpty() && list.size() % 2 == 0) { properties.put("quotes", Quotes.list_values); values.put("quotes", list); return true; } return false; } }
@SuppressWarnings("unused") private boolean processQuotes(Declaration d, Map<String, CSSProperty> properties, Map<String, Term<?>> values) { if (d.size() == 1 && genericTermIdent(Quotes.class, d.get(0), ALLOW_INH, "quotes", properties)) { return true; } else { TermList list = tf.createList(); for (Term<?> term : d.asList()) { if (term instanceof TermString) list.add(term); else return false; } // there are pairs of quotes if (!list.isEmpty() && list.size() % 2 == 0) { properties.put("quotes", Quotes.list_values); values.put("quotes", list); return true; } return false; } }
if (((TermIdent)list.get(0)).getValue().equals("-dotify-counter")) { int counterValue = Integer.parseInt(t); if (list.size() == 1) s.removeProperty("text-transform"); else