public AttributeNodeIterator(AttributeNodePointer pointer) { this.pointer = pointer; feature = (ComplexAttribute) pointer.getImmediateAttribute(); children = new ArrayList<Property>(feature.getValue()); position = 1; }
public Object convert(Object source, Class target) throws Exception { if (source instanceof ComplexAttribute) { Collection<? extends Property> valueMap = ((ComplexAttribute) source).getValue(); if (valueMap.isEmpty() || valueMap.size() > 1) { return null; } else { // there should only be one value source = valueMap.iterator().next(); if (AttributeImpl.class.equals(source.getClass())) { return Converters.convert(((Attribute) source).getValue(), target); } } } return null; } };
Collection properties = (Collection) complex.getValue(); for (Iterator itr = properties.iterator(); itr.hasNext(); ) { Property property = (Property) itr.next();
public AttributeNodeIterator(AttributeNodePointer pointer) { this.pointer = pointer; feature = (ComplexAttribute) pointer.getImmediateNode(); children = new ArrayList<Property>(feature.getValue()); position = 1; }
public AttributeNodeIterator(AttributeNodePointer pointer) { this.pointer = pointer; feature = (ComplexAttribute) pointer.getImmediateAttribute(); children = new ArrayList<Property>(feature.getValue()); position = 1; }
values = complexAttribute.getValue(); assertEquals(1, values.size()); assertEquals( values = complexAttribute.getValue(); assertEquals(1, values.size()); assertEquals( values = complexAttribute.getValue(); assertEquals(1, values.size()); assertEquals("-Py", GML3EncodingUtils.getSimpleContent(complexAttribute));
public Object convert(Object source, Class target) throws Exception { if (source instanceof ComplexAttribute) { Collection<? extends Property> valueMap = ((ComplexAttribute) source) .getValue(); if (valueMap.isEmpty() || valueMap.size() > 1) { return null; } else { // there should only be one value source = valueMap.iterator().next(); if (AttributeImpl.class.equals(source.getClass())) { return Converters.convert(((Attribute) source).getValue(), target); } } } return null; } };
Collection properties = (Collection) complex.getValue(); for (Iterator itr = properties.iterator(); itr.hasNext();) { Property property = (Property) itr.next();
values = complexAttribute.getValue(); assertEquals(1, values.size()); assertEquals("Yaugher Volcanic Group 1", values = complexAttribute.getValue(); assertEquals(1, values.size()); assertEquals("Yaugher Volcanic Group 2", values = complexAttribute.getValue(); assertEquals(1, values.size()); assertEquals("-Py",