PropertyArity arity = pProp.getArity ();
/** * Extract the content value associated with a given httpEquiv. * @param prop List containing the description of the meta tag * @param httpEquivValue the httpEquiv to consider * @return the content value */ public String extractHttpEquivValue(Property prop, String httpEquivValue) { if (httpEquivValue == null) return null; String value = null; Property httpEquiv = prop.getByName("Httpequiv"); if (httpEquiv != null && PropertyArity.SCALAR.equals(httpEquiv.getArity()) && PropertyType.STRING.equals(httpEquiv.getType()) ) { String val = (String)httpEquiv.getValue(); if (httpEquivValue.equalsIgnoreCase(val)) { // Look for charset in the Content property Property content = prop.getByName("Content"); if (content != null && PropertyArity.SCALAR.equals(content.getArity()) && PropertyType.STRING.equals(content.getType()) ) { value = (String)content.getValue(); } } } return value; }
private void showProperty (Property property, String key, String margin) { PropertyArity arity = property.getArity (); if (key == null) { _writer.print (margin + " "); } else { _writer.print (margin + " " + key + ": "); } if (arity.equals (PropertyArity.SCALAR)) { showScalarProperty (property, margin); } else if (arity.equals (PropertyArity.LIST)) { showListProperty (property, margin); } else if (arity.equals (PropertyArity.MAP)) { showMapProperty (property, margin); } else if (arity.equals (PropertyArity.SET)) { showSetProperty (property, margin); } else if (arity.equals (PropertyArity.ARRAY)) { showArrayProperty (property, margin); } else { _writer.println (); } }
PropertyArity arity = pProp.getArity (); PropertyType typ = pProp.getType (); Object pValue = pProp.getValue ();
String margn4 = margn3 + " "; PropertyArity arity = property.getArity (); PropertyType type = property.getType ();