Examples of MetadataAttribute


Examples of org.fao.geonet.kernel.schema.MetadataAttribute

       
        //-----------------------------------------------------------------------
        //--- handle attributes if mandatory or suggested
        //
        for(int i=0; i<type.getAttributeCount(); i++) {
            MetadataAttribute attr = type.getAttributeAt(i);
           
            if(Log.isDebugEnabled(Geonet.EDITORFILLELEMENT)) {
                Log.debug(Geonet.EDITORFILLELEMENT,"####   - " + i + " attribute = " + attr.name);
                Log.debug(Geonet.EDITORFILLELEMENT,"####     - required = " + attr.required);
                Log.debug(Geonet.EDITORFILLELEMENT,"####     - suggested = "+sugg.isSuggested(elemName, attr.name));
View Full Code Here

Examples of org.fao.geonet.kernel.schema.MetadataAttribute

     * @param md
     * @param schema
     */
  private void addAttribs(MetadataType type, Element md, MetadataSchema schema) {
    for(int i=0; i<type.getAttributeCount(); i++) {
      MetadataAttribute attr = type.getAttributeAt(i);

      Element attribute = new Element(Edit.RootChild.ATTRIBUTE, Edit.NAMESPACE);

      attribute.setAttribute(new Attribute(Edit.Attribute.Attr.NAME, attr.name));
      //--- add default value (if any)
View Full Code Here

Examples of org.geotools.coverage.io.metadata.MetadataAttribute

        MetadataNode metadata = source.getMetadata(null, null);
        assertNotNull(metadata);
        Map<String, MetadataAttribute> attributes = metadata.getAttributes();
        assertNotNull(attributes);
        assertTrue(!attributes.isEmpty());
        MetadataAttribute metadataAttribute = attributes.get("testAttribute");
        assertNotNull(metadataAttribute);
        assertNotNull(metadata.getNodes());
    }
View Full Code Here

Examples of org.geotools.coverage.io.metadata.MetadataAttribute

        @Override
        public MetadataNode getMetadata( String metadataDomain, ProgressListener listener ) {
            MetadataNode metadataNode = new MetadataNode();
            Map<String, MetadataAttribute> attributes = new HashMap<String, MetadataAttribute>();
            attributes.put("testAttribute", new MetadataAttribute());
            metadataNode.setAttributes(attributes);
            metadataNode.setNodes(new ArrayList<MetadataNode>());
            return metadataNode;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.