Tabnine Logo
DTDStore$DTDObjectContainer.getElement
Code IndexAdd Tabnine to your IDE (free)

How to use
getElement
method
in
org.milyn.dtd.DTDStore$DTDObjectContainer

Best Java code snippets using org.milyn.dtd.DTDStore$DTDObjectContainer.getElement (Showing top 8 results out of 315)

origin: smooks/smooks

/**
 * Get the defined element attributes for the named element.
 * @param elementName The element name.
 * @return The list of attribute names ({@link String}s) for the named element.
 * @throws ElementNotDefined Element not defined.  Calls shouldn't be made to this
 * function for undefined elements.
 */
@SuppressWarnings({ "WeakerAccess", "unchecked" })
public List getElementAttributes(String elementName) throws ElementNotDefined {
  Vector attributes = (Vector)elementAttributes.get(elementName);
  if(attributes == null) {
    DTDElement element = getElement(elementName);
    if(element != null) {
      attributes = new Vector();
      elementAttributes.put(elementName, attributes);
      attributes.addAll(element.attributes.keySet());
    } else {
      throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD.");
    }
  }
  return attributes;
}
origin: org.milyn/milyn-smooks-all

/**
 * Get the defined element attributes for the named element.
 * @param elementName The element name.
 * @return The list of attribute names ({@link String}s) for the named element.
 * @throws ElementNotDefined Element not defined.  Calls shouldn't be made to this
 * function for undefined elements.
 */
@SuppressWarnings({ "WeakerAccess", "unchecked" })
public List getElementAttributes(String elementName) throws ElementNotDefined {
  Vector attributes = (Vector)elementAttributes.get(elementName);
  if(attributes == null) {
    DTDElement element = getElement(elementName);
    if(element != null) {
      attributes = new Vector();
      elementAttributes.put(elementName, attributes);
      attributes.addAll(element.attributes.keySet());
    } else {
      throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD.");
    }
  }
  return attributes;
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Get the defined element attributes for the named element.
 * @param elementName The element name.
 * @return The list of attribute names ({@link String}s) for the named element.
 * @throws ElementNotDefined Element not defined.  Calls shouldn't be made to this 
 * function for undefined elements. 
 */
public List getElementAttributes(String elementName) throws ElementNotDefined {
  Vector attributes = (Vector)elementAttributes.get(elementName);
  
  if(attributes == null) {
    DTDElement element = getElement(elementName);
    
    if(element != null) {
      attributes = new Vector();
      elementAttributes.put(elementName, attributes);
      attributes.addAll(element.attributes.keySet());
    } else {
      throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD.");
    }
  }
  
  return attributes;			
}

origin: org.milyn/milyn-smooks-all

/**
 * Get the child elements for the named element.
 * <p/>
 * PCData is returned as a "*" list entry.
 * @param elementName Element name.
 * @return List of allowed element names ({@link String}s).
 */
@SuppressWarnings({ "WeakerAccess", "unchecked" })
public List getChildElements(String elementName) {
  Vector childElements = (Vector)elementElements.get(elementName);
  if(childElements == null) {
    DTDElement element = getElement(elementName);
    if(element != null) {
      childElements = new Vector();
      elementElements.put(elementName, childElements);
      if(element.content instanceof DTDContainer) {
        DTDContainer container = (DTDContainer)element.content;
        Vector itemsVec = container.getItemsVec();
        for(int i = 0; i < itemsVec.size(); i++) {
          Object item = itemsVec.elementAt(i);
          if(item instanceof DTDName) {
            childElements.add(((DTDName)item).getValue());
          }
        }
      }
    }
  }
  return childElements;
}
origin: org.virtuslab/milyn-smooks-core

DTDElement element = getElement(elementName);
origin: org.milyn/milyn-smooks-core

/**
 * Get the child elements for the named element.
 * <p/>
 * PCData is returned as a "*" list entry.
 * @param elementName Element name.
 * @return List of allowed element names ({@link String}s).
 */
@SuppressWarnings({ "WeakerAccess", "unchecked" })
public List getChildElements(String elementName) {
  Vector childElements = (Vector)elementElements.get(elementName);
  if(childElements == null) {
    DTDElement element = getElement(elementName);
    if(element != null) {
      childElements = new Vector();
      elementElements.put(elementName, childElements);
      if(element.content instanceof DTDContainer) {
        DTDContainer container = (DTDContainer)element.content;
        Vector itemsVec = container.getItemsVec();
        for(int i = 0; i < itemsVec.size(); i++) {
          Object item = itemsVec.elementAt(i);
          if(item instanceof DTDName) {
            childElements.add(((DTDName)item).getValue());
          }
        }
      }
    }
  }
  return childElements;
}
origin: org.milyn/milyn-smooks-core

/**
 * Get the defined element attributes for the named element.
 * @param elementName The element name.
 * @return The list of attribute names ({@link String}s) for the named element.
 * @throws ElementNotDefined Element not defined.  Calls shouldn't be made to this
 * function for undefined elements.
 */
@SuppressWarnings({ "WeakerAccess", "unchecked" })
public List getElementAttributes(String elementName) throws ElementNotDefined {
  Vector attributes = (Vector)elementAttributes.get(elementName);
  if(attributes == null) {
    DTDElement element = getElement(elementName);
    if(element != null) {
      attributes = new Vector();
      elementAttributes.put(elementName, attributes);
      attributes.addAll(element.attributes.keySet());
    } else {
      throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD.");
    }
  }
  return attributes;
}
origin: smooks/smooks

/**
 * Get the child elements for the named element.
 * <p/>
 * PCData is returned as a "*" list entry.
 * @param elementName Element name.
 * @return List of allowed element names ({@link String}s).
 */
@SuppressWarnings({ "WeakerAccess", "unchecked" })
public List getChildElements(String elementName) {
  Vector childElements = (Vector)elementElements.get(elementName);
  if(childElements == null) {
    DTDElement element = getElement(elementName);
    if(element != null) {
      childElements = new Vector();
      elementElements.put(elementName, childElements);
      if(element.content instanceof DTDContainer) {
        DTDContainer container = (DTDContainer)element.content;
        Vector itemsVec = container.getItemsVec();
        for(int i = 0; i < itemsVec.size(); i++) {
          Object item = itemsVec.elementAt(i);
          if(item instanceof DTDName) {
            childElements.add(((DTDName)item).getValue());
          }
        }
      }
    }
  }
  return childElements;
}
org.milyn.dtdDTDStore$DTDObjectContainergetElement

Javadoc

Get the DTDElement for the named element.

Popular methods of DTDStore$DTDObjectContainer

  • <init>
  • getAnyElements
    Get the list of DTD elements whose content spec is defined as being ANY.
  • getElements
    Get the DTD elements whose content spec is represented in the DTD DOM by the specified runtime class
  • getEmptyElements
    Get the list of DTD elements whose content spec is defined as being EMPTY.
  • getMixedElements
    Get the list of DTD elements whose content spec is defined as being MIXED.
  • getNonAnyElements
    Get the list of DTD elements whose content spec is not defined as being ANY.
  • getNonEmptyElements
    Get the list of DTD elements whose content spec is not defined as being EMPTY.
  • getNonMixedElements
    Get the list of DTD elements whose content spec is not defined as being MIXED.
  • getNonPCDataElements
    Get the list of DTD elements whose content spec is defined as being #PCDATA.
  • getPCDataElements
    Get the list of DTD elements whose content spec is defined as being #PCDATA.

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now