public boolean isIdentified() { return getSubject().isIdentified(); }
/** * Override of equals. * * @param other the object to be tested for equality. * @return whether other is equal to this attribute Type. */ public boolean equals(Object other) { if (this == other) return true; if (!(other instanceof AttributeType)) { return false; } if (!super.equals(other)) return false; AttributeType att = (AttributeType) other; if (identified != att.isIdentified()) { return false; } return true; }
binding = type.getBinding().getName() + ".class"; String isIdentified = type.isIdentified() ? "true" : "false"; String isAbstract = type.isAbstract() ? "true" : "false";
binding = type.getBinding().getName() + ".class"; String isIdentified = type.isIdentified() ? "true" : "false"; String isAbstract = type.isAbstract() ? "true" : "false"; String restrictions = "null";
type.getBinding(), crs, type.isIdentified(), type.isAbstract(), type.getRestrictions(),
if (type.isIdentified() && attribute.getIdentifier() == null) { throw new NullPointerException(type.getName() + " is identified, null id not accepted");
/** Initializes builder state from another attribute type. */ public AttributeTypeBuilder init(AttributeType type) { name = type.getName().getLocalPart(); separator = type.getName().getSeparator(); namespaceURI = type.getName().getNamespaceURI(); isAbstract = type.isAbstract(); if (type.getRestrictions() != null) { restrictions().addAll(type.getRestrictions()); } description = type.getDescription() != null ? type.getDescription().toString() : null; isIdentifiable = type.isIdentified(); binding = type.getBinding(); superType = type.getSuper(); if (type instanceof GeometryType) { crs = ((GeometryType) type).getCoordinateReferenceSystem(); } return this; }
isIdentified = aType.isIdentified(); superType = aType.getSuper();
actualDescriptor) .getCoordinateReferenceSystem(), targetNodeType.isIdentified(), targetNodeType.isAbstract(), targetNodeType.getRestrictions(),
public boolean isIdentified() { return getSubject().isIdentified(); }
public boolean isIdentified() { return getSubject().isIdentified(); }
/** * Override of equals. * * @param other * the object to be tested for equality. * * @return whether other is equal to this attribute Type. */ public boolean equals(Object other) { if(this == other) return true; if (!(other instanceof AttributeType)) { return false; } if (!super.equals(other)) return false; AttributeType att = (AttributeType) other; if (identified != att.isIdentified()) { return false; } return true; }
/** * Asserts the corresponding properties of <code>type</code> for equality with the provided * parameter values * * @param type * @param name * @param binding * @param restrictions * @param identified * @param _abstract * @param superType * @param nillable */ public static void checkType( AttributeType type, Name name, Class<?> binding, Set<Filter> restrictions, boolean identified, boolean _abstract, AttributeType superType) { assertNotNull(type); assertEquals(name, type.getName()); assertEquals(binding, type.getBinding()); assertNotNull(type.getRestrictions()); assertEquals(restrictions, type.getRestrictions()); assertEquals(identified, type.isIdentified()); assertEquals(_abstract, type.isAbstract()); assertEquals(superType, type.getSuper()); }
private AttributeDescriptor createAttributeDescriptor(AttributeType type, CoordinateReferenceSystem crs, Name elemName, int minOccurs, int maxOccurs, boolean nillable, Object defaultValue) { AttributeDescriptor descriptor = null; if (maxOccurs == -1) { // this happens when maxOccurs is set to "unbounded" maxOccurs = Integer.MAX_VALUE; } if (!(type instanceof AttributeTypeProxy) && Geometry.class.isAssignableFrom(type.getBinding())) { // create geometry descriptor with the simple feature type CRS GeometryType geomType = new GeometryTypeImpl(type.getName(), type.getBinding(), crs, type.isIdentified(), type.isAbstract(), type.getRestrictions(), type.getSuper(), type.getDescription()); descriptor = typeFactory.createGeometryDescriptor(geomType, elemName, minOccurs, maxOccurs, nillable, defaultValue); } else { descriptor = typeFactory.createAttributeDescriptor(type, elemName, minOccurs, maxOccurs, nillable, defaultValue); } return descriptor; }
/** * Initializes builder state from another attribute type. */ public AttributeTypeBuilder init( AttributeType type ) { name = type.getName().getLocalPart(); separator = type.getName().getSeparator(); namespaceURI = type.getName().getNamespaceURI(); isAbstract = type.isAbstract(); if ( type.getRestrictions() != null ) { restrictions().addAll( type.getRestrictions() ); } description = type.getDescription() != null ? type.getDescription().toString() : null; isIdentifiable = type.isIdentified(); binding = type.getBinding(); superType = type.getSuper(); if ( type instanceof GeometryType ) { crs = ((GeometryType)type).getCoordinateReferenceSystem(); } return this; }
type.getBinding(), crs, type.isIdentified(), type.isAbstract(), type.getRestrictions(),
isIdentified = aType.isIdentified(); superType = aType.getSuper();
if (et instanceof AttributeType) { assertTrue(at instanceof AttributeType); assertEquals(((AttributeType) et).isIdentified(), ((AttributeType) at).isIdentified());
/** * Asserts the corresponding properties of <code>type</code> for equality with the provided * parameter values * * @param type * @param name * @param binding * @param restrictions * @param identified * @param _abstract * @param superType * @param nillable */ public static void checkType(AttributeType type, Name name, Class<?> binding, Set<Filter> restrictions, boolean identified, boolean _abstract, AttributeType superType) { assertNotNull(type); assertEquals(name, type.getName()); assertEquals(binding, type.getBinding()); assertNotNull(type.getRestrictions()); assertEquals(restrictions, type.getRestrictions()); assertEquals(identified, type.isIdentified()); assertEquals(_abstract, type.isAbstract()); assertEquals(superType, type.getSuper()); }
/** * Asserts the corresponding properties of <code>type</code> for equality with the provided * parameter values * * @param type * @param name * @param binding * @param restrictions * @param identified * @param _abstract * @param superType * @param nillable */ public static void checkType( AttributeType type, Name name, Class<?> binding, Set<Filter> restrictions, boolean identified, boolean _abstract, AttributeType superType) { assertNotNull(type); assertEquals(name, type.getName()); assertEquals(binding, type.getBinding()); assertNotNull(type.getRestrictions()); assertEquals(restrictions, type.getRestrictions()); assertEquals(identified, type.isIdentified()); assertEquals(_abstract, type.isAbstract()); assertEquals(superType, type.getSuper()); }