/** * Returns the same list of names than {@link #getTypeNames()} meaning the returned Names have * no namespace set. * * @since 1.7 * @see DataAccess#getNames() */ public List<Name> getNames() throws IOException { String[] typeNames = getTypeNames(); List<Name> names = new ArrayList<Name>(typeNames.length); for (String typeName : typeNames) { names.add(new NameImpl(typeName)); } return names; }
private static AttributeType build_NCNAMELIST_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "NCNameList"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYSIMPLETYPE_TYPE, null); return builtType; }
@Override public Collection<PropertyDescriptor> buildDescriptors() { List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add( new AttributeDescriptorImpl( UOMIDENTIFIER_TYPE, new NameImpl("uom"), 0, 1, true, null)); return descriptors; } };
private static ComplexType build_CLOTHOIDTYPE_REFLOCATION_TYPE() { ComplexType builtType; List<PropertyDescriptor> schema = new ArrayList<PropertyDescriptor>(); schema.add( new AttributeDescriptorImpl( AFFINEPLACEMENTTYPE_TYPE, new NameImpl("http://www.opengis.net/gml", "AffinePlacement"), 1, 1, false, null)); builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "ClothoidType_refLocation"), schema, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
private static ComplexType build_ABSTRACTRINGPROPERTYTYPE_TYPE() { ComplexType builtType; List<PropertyDescriptor> schema = new ArrayList<PropertyDescriptor>(); schema.add( new AttributeDescriptorImpl( ABSTRACTRINGTYPE_TYPE, new NameImpl("http://www.opengis.net/gml", "_Ring"), 1, 1, false, null)); builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "AbstractRingPropertyType"), schema, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
@Override public Collection<PropertyDescriptor> buildDescriptors() { List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add( new AttributeDescriptorImpl( UOMIDENTIFIER_TYPE, new NameImpl("uom"), 0, 1, true, null)); return descriptors; } };
expect(cat.getLayerByName(new NameImpl("ws1", "l1"))).andReturn(l1).anyTimes(); expect(cat.getLayerByName("l1")).andReturn(null).anyTimes(); expect(cat.getLayerByName(new NameImpl("ws2", "l2"))).andReturn(l2).anyTimes(); expect(cat.getLayerByName("l2")).andReturn(null).anyTimes(); expect(cat.getLayerByName(new NameImpl("ws1", "lc"))).andReturn(lc1).anyTimes(); expect(cat.getLayerByName(new NameImpl("ws2", "lc"))).andReturn(lc2).anyTimes(); layers.add(l1); layers.add(l2); layers.add(lc1); layers.add(lc2); expect(cat.getLayers()).andReturn(layers).anyTimes();
private static AttributeType build_POINTPROPERTYTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "PointPropertyType"), org.locationtech.jts.geom.Point.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
private static ComplexType build_GRIDLIMITSTYPE_TYPE() { ComplexType builtType; List<PropertyDescriptor> schema = new ArrayList<PropertyDescriptor>(); schema.add( new AttributeDescriptorImpl( GRIDENVELOPETYPE_TYPE, new NameImpl("http://www.opengis.net/gml", "GridEnvelope"), 1, 1, false, null)); builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "GridLimitsType"), schema, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
@Override public Collection<PropertyDescriptor> buildDescriptors() { List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add( new AttributeDescriptorImpl( UOMIDENTIFIER_TYPE, new NameImpl("uom"), 0, 1, true, null)); return descriptors; } };
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); Catalog catalog = getCatalog(); LayerInfo layer = catalog.getLayerByName(new NameImpl(CiteTestData.BASIC_POLYGONS)); StyleInfo style = catalog.getStyleByName(CiteTestData.DEFAULT_VECTOR_STYLE); CatalogFactory factory = catalog.getFactory(); LayerGroupInfo lg1 = factory.createLayerGroup(); lg1.setName("LayerGroup1"); lg1.getLayers().add(layer); lg1.getStyles().add(style); catalog.add(lg1); LayerGroupInfo lg2 = factory.createLayerGroup(); lg2.setName("LayerGroup2"); lg2.setWorkspace(catalog.getWorkspaceByName(CiteTestData.CITE_PREFIX)); lg2.getLayers().add(layer); lg2.getStyles().add(style); catalog.add(lg2); }
private static AttributeType build_CURVEINTERPOLATIONTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "CurveInterpolationType"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.STRING_TYPE, null); return builtType; }
private static ComplexType build_TIMECALENDARTYPE_TYPE() { ComplexType builtType; List<PropertyDescriptor> schema = new ArrayList<PropertyDescriptor>(); schema.add( new AttributeDescriptorImpl( TIMECALENDARERAPROPERTYTYPE_TYPE, new NameImpl("http://www.opengis.net/gml", "referenceFrame"), 1, 2147483647, false, null)); builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "TimeCalendarType"), schema, false, false, Collections.<Filter>emptyList(), ABSTRACTTIMEREFERENCESYSTEMTYPE_TYPE, null); return builtType; }
@Override public Collection<PropertyDescriptor> buildDescriptors() { List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add( new AttributeDescriptorImpl( UOMIDENTIFIER_TYPE, new NameImpl("uom"), 0, 1, true, null)); return descriptors; } };
public List<Name> getNames() { final List<String> typeNames = getTypeNames(); List<Name> names = new ArrayList<Name>(typeNames.size()); for (String typeName : typeNames) { NameImpl name = namespace == null ? new NameImpl(typeName) : new NameImpl(namespace, typeName); names.add(name); } return names; }
private static AttributeType build_LINEARRINGTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "LinearRingType"), org.locationtech.jts.geom.LinearRing.class, false, false, Collections.<Filter>emptyList(), ABSTRACTRINGTYPE_TYPE, null); return builtType; }
private static ComplexType build_BASEUNITTYPE_TYPE() { ComplexType builtType; List<PropertyDescriptor> schema = new ArrayList<PropertyDescriptor>(); schema.add( new AttributeDescriptorImpl( REFERENCETYPE_TYPE, new NameImpl("http://www.opengis.net/gml", "unitsSystem"), 1, 1, false, null)); builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "BaseUnitType"), schema, false, false, Collections.<Filter>emptyList(), UNITDEFINITIONTYPE_TYPE, null); return builtType; }
@Override public Collection<PropertyDescriptor> buildDescriptors() { List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>(); descriptors.add( new AttributeDescriptorImpl( XSSchema.ANYURI_TYPE, new NameImpl("src"), 0, 1, true, null)); return descriptors; } };
private static AttributeType build_NULLTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "NullType"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYSIMPLETYPE_TYPE, null); return builtType; }