public AttributeDescriptor createAttributeDescriptor( AttributeType type, Name name, int minOccurs, int maxOccurs, boolean isNillable, Object defaultValue) { return new AttributeDescriptorImpl( type, name, minOccurs, maxOccurs, isNillable, defaultValue); }
public String getLocalName() { return getName().getLocalPart(); } }
public GeometryType getType() { return (GeometryType) super.getType(); }
public boolean equals(Object other) { if (other == null) { return false; } if (!(other instanceof ChoiceAttributeType)) { return false; } ChoiceAttributeType att = (ChoiceAttributeType) other; if (!super.equals(att)) { return false; } //hmmm... This makes the assumption that the order of the choices //matters - not sure if that's true. Though the order does matter a //a bit for our parse method, so this is probably right, since two //with different orders could have diff. behaviors for that method. if (!Arrays.equals(children, att.getAttributeTypes())) { return false; } return true; }
/** * 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 (other == null) { return false; } if( !(other instanceof AttributeType) ){ return false; } AttributeType att = (AttributeType) other; if (!super.equals(att)) { return false; } if (!getBinding().equals(att.getBinding())) { return false; } return true; }
@Override public AttributeDescriptor getDescriptor() { return new AttributeDescriptorImpl( featureType, featureType.getName(), 0, Integer.MAX_VALUE, true, null); }
public String toString() { StringBuffer sb = new StringBuffer(Classes.getShortClassName(this)); sb.append(" "); sb.append(getName()); if (type != null) { sb.append(" <");
public GeometryType getType() { return (GeometryType) super.getType(); }
/** @see org.opengis.feature.Attribute#getDescriptor() */ public AttributeDescriptor getDescriptor() { return new AttributeDescriptorImpl( featureType, featureType.getName(), 0, Integer.MAX_VALUE, true, null); }
public String getLocalName() { return getName().getLocalPart(); }
/** * Wraps a {@link AttributeType} in {@link AttributeDescriptor}. * * @param type The attribute type. * @return The attribute descriptor. */ public static final AttributeDescriptor wrapAttributeType(AttributeType type) { if (type == null) { return null; } return new AttributeDescriptorImpl(type, type.getName(), 1, 1, true, null); }
public String toString() { StringBuffer sb = new StringBuffer(Classes.getShortClassName(this)); sb.append(" "); sb.append( getName() ); if( type != null ){ sb.append( " <" );
public AttributeDescriptor getDescriptor() { return new AttributeDescriptorImpl( featureType, featureType.getName(), 0, Integer.MAX_VALUE, true, null); }
public ComplexAttributeImpl(Collection<Property> properties, ComplexType type, Identifier id) { this(properties, new AttributeDescriptorImpl(type, type.getName(), 1, 1, true, null), id); }
public AttributeImpl(Object content, AttributeType type, Identifier id) { this(content, new AttributeDescriptorImpl(type, type.getName(), 1, 1, true, null), id); }
@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 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 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 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 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; } };