public void setDefaultGeometry(Object geometry) { Integer geometryIndex = index.get(null); if (geometryIndex != null) { setAttribute(geometryIndex, geometry); } }
public void setAttribute(String name, Object value) { final Integer idx = index.get(name); if (idx == null) throw new IllegalAttributeException("Unknown attribute " + name); setAttribute(idx.intValue(), value); }
public void setAttribute(Name name, Object value) { setAttribute(name.getLocalPart(), value); }
public void setDefaultGeometry(Object geometry) { Integer geometryIndex = index.get( null ); if ( geometryIndex != null ) { setAttribute( geometryIndex, geometry ); } }
public void setAttribute(String name, Object value) { final Integer idx = index.get(name); if(idx == null) throw new IllegalAttributeException("Unknown attribute " + name); setAttribute( idx.intValue(), value ); }
public void setAttribute(Name name, Object value) { setAttribute( name.getLocalPart(), value ); }
/** * Sets a single attribute for this feature, passed as a complex object. If * the attribute does not exist or the object does not conform to the * internal feature type, an exception is thrown. * * @param xPath XPath representation of attribute location. * @param attribute Feature attribute to set. * * @throws IllegalAttributeException Passed attribute does not match * feature type */ public void setAttribute(String xPath, Object attribute) throws IllegalAttributeException { try { super.setAttribute(xPath, attribute); } catch( Exception e ) { throw (IllegalAttributeException) new IllegalAttributeException(e.getLocalizedMessage()).initCause(e); } // int idx = schema.find(xPath); // // if (idx < 0) { // throw new IllegalAttributeException("No attribute named " + xPath); // } // // setAttribute(idx, attribute); }
super.setAttribute(position, val);
super.setAttribute(position, val); } catch (IllegalArgumentException iae) { throw new IllegalAttributeException(type, val, iae);