/** * @see MetaDataObject_impl#getXmlizationInfo() */ protected XmlizationInfo getXmlizationInfo() { return new XmlizationInfo("priorityList", new PropertyXmlInfo[] { new PropertyXmlInfo("types", null, false, "type") }); } }
private static Serializer getSerializerFromContentHandler(ContentHandler aContentHandler) { return (aContentHandler instanceof CharacterValidatingContentHandler) ? new MetaDataObjectSerializer_indent((CharacterValidatingContentHandler) aContentHandler) : new MetaDataObjectSerializer_plain(aContentHandler); }
/** * Create a index collection from a set of descriptions. * * @param descriptions * the index descriptions * @return the index collection */ public static FsIndexCollection createFsIndexCollection(FsIndexDescription... descriptions) { FsIndexCollection_impl fsIndexCollection = new FsIndexCollection_impl(); fsIndexCollection.setFsIndexes(descriptions); return fsIndexCollection; }
/** * @param featureName * the feature to index * @param comparator * the index comparator * @return the index key description */ public static FsIndexKeyDescription createFsIndexKeyDescription(String featureName, int comparator) { FsIndexKeyDescription_impl key = new FsIndexKeyDescription_impl(); key.setFeatureName(featureName); key.setComparator(comparator); key.setTypePriority(false); return key; }
private boolean hasXMLizableChild(PropertyXmlInfo[] ia, MetaDataObject_impl mdo) { for (PropertyXmlInfo pi : ia) { Object val = mdo.getAttributeValue(pi.propertyName); if (val != null && val instanceof XMLizable) { return true; } } return false; }
/** * Constructor. * * @param aString * the allowed value string * @param aDescription * verbose description of this allowed value */ public AllowedValue_impl(String aString, String aDescription) { setString(aString); setDescription(aDescription); }
@Override public void outputEndElementForArrayElement(Node node, String aNamespace, String localname, String qname) throws SAXException { outputEndElement(node, aNamespace, localname, qname); }
/** * This is called internally, also for JSon serialization * @see org.apache.uima.util.XMLizable#toXML(ContentHandler) */ public void toXML(ContentHandler aContentHandler) throws SAXException { toXML(aContentHandler, false); }
/** * @see org.apache.uima.resource.metadata.impl.MetaDataObject_impl#getXmlizationInfo() */ protected XmlizationInfo getXmlizationInfo() { return new XmlizationInfo(null, null); // this object has custom XMLization routines }
/** * @see org.apache.uima.resource.metadata.MimeTypePrecondition#getMimeTypes() */ public String[] getMimeTypes() { return (String[]) getComparisonValue(); }
/** * @see org.apache.uima.resource.metadata.MimeTypePrecondition#setMimeTypes(java.lang.String[]) */ public void setMimeTypes(String[] aMimeTypes) { setComparisonValue(aMimeTypes); }
/** * @see TypeDescription#addFeature(String, String, String) */ public FeatureDescription addFeature(String aFeatureName, String aDescription, String aRangeTypeName) { return addFeature(aFeatureName, aDescription, aRangeTypeName, null, null); }
/** * @see org.apache.uima.resource.metadata.LanguagePrecondition#setLanguages(java.lang.String[]) */ public void setLanguages(String[] aLanguages) { setComparisonValue(aLanguages); }
@Override public void outputStartElementForArrayElement(Node node, String nameSpace, String localName, String qName, Attributes attributes) throws SAXException { outputStartElement(node, nameSpace, localName, qName, attributes); }
/** * @see org.apache.uima.resource.metadata.LanguagePrecondition#getLanguages() */ public String[] getLanguages() { return (String[]) getComparisonValue(); }
@Override public void outputStartElementForArrayElement(Node node, String nameSpace, String localName, String qName, Attributes attributes) throws SAXException { outputStartElement(node, nameSpace, localName, qName, attributes); }
/** * @see org.apache.uima.resource.metadata.impl.MetaDataObject_impl#getXmlizationInfo() */ @Override protected XmlizationInfo getXmlizationInfo() { return new XmlizationInfo("resultSpecification", "", new PropertyXmlInfo[] { new PropertyXmlInfo("resultTypesAndFeatures", null) }); }
/** * @see MetaDataObject_impl#getXmlizationInfo() */ protected XmlizationInfo getXmlizationInfo() { // NOTE: custom XMLization is used for reading. This information // is only used for writing. return new XmlizationInfo("configurationParameters", new PropertyXmlInfo[] { new PropertyXmlInfo("configurationParameters", null), new PropertyXmlInfo("commonParameters", "commonParameters"), new PropertyXmlInfo("configurationGroups", null) }); } }
/** * @see MetaDataObject_impl#getXmlizationInfo() */ protected XmlizationInfo getXmlizationInfo() { return new XmlizationInfo("typePriorities", new PropertyXmlInfo[] { new PropertyXmlInfo("name", true), new PropertyXmlInfo("description", true), new PropertyXmlInfo("version", true), new PropertyXmlInfo("vendor", true), new PropertyXmlInfo("imports", true), new PropertyXmlInfo("priorityLists", true) }); } }