public boolean isAbstract() { return getSubject().isAbstract(); }
String isAbstract = type.isAbstract() ? "true" : "false";
String isAbstract = type.isAbstract() ? "true" : "false"; String restrictions = "null"; String superType = "null";
crs, type.isIdentified(), type.isAbstract(), type.getRestrictions(), type.getSuper(),
/** 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; }
.getCoordinateReferenceSystem(), targetNodeType.isIdentified(), targetNodeType.isAbstract(), targetNodeType.getRestrictions(), targetNodeType.getSuper(),
public boolean isAbstract() { return getSubject().isAbstract(); }
public boolean isAbstract() { return getSubject().isAbstract(); }
/** * 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; }
crs, type.isIdentified(), type.isAbstract(), type.getRestrictions(), type.getSuper(),
.getCoordinateReferenceSystem(), targetNodeType.isIdentified(), targetNodeType .isAbstract(), targetNodeType.getRestrictions(), targetNodeType .getSuper(), targetNodeType.getDescription());
/** * 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()); }