-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lukas Jungmann <[email protected]>
- Loading branch information
Showing
7 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Distribution License v. 1.0, which is available at | ||
|
@@ -15,14 +15,14 @@ | |
|
||
|
||
/** | ||
* represents a possible number of occurence. | ||
* represents a possible number of occurrence. | ||
* | ||
* Usually, denoted by a pair of integers like (1,1) or (5,10). | ||
* A special value "unbounded" is allowed as the upper bound. | ||
* | ||
* <p> | ||
* For example, (0,unbounded) corresponds to the '*' occurence of DTD. | ||
* (0,1) corresponds to the '?' occurence of DTD. | ||
* For example, (0,unbounded) corresponds to the '*' occurrence of DTD. | ||
* (0,1) corresponds to the '?' occurrence of DTD. | ||
* | ||
* @author | ||
* <a href="mailto:[email protected]">Kohsuke KAWAGUCHI</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,8 +62,8 @@ | |
* @author | ||
* <a href="mailto:[email protected]">Kohsuke KAWAGUCHI</a> | ||
*/ | ||
public class TDTDReader extends DTDHandlerBase | ||
{ | ||
public class TDTDReader extends DTDHandlerBase { | ||
|
||
/** | ||
* Parses DTD grammar and a binding information into BGM. | ||
* | ||
|
@@ -361,8 +361,8 @@ public void startModelGroup() throws SAXException { | |
} | ||
|
||
@Override | ||
public void endModelGroup(short occurence) throws SAXException { | ||
Term t = Occurence.wrap( modelGroups.pop().wrapUp(), occurence ); | ||
public void endModelGroup(short occurrence) throws SAXException { | ||
Term t = Occurrence.wrap( modelGroups.pop().wrapUp(), occurrence ); | ||
modelGroups.peek().addTerm(t); | ||
} | ||
|
||
|
@@ -375,9 +375,9 @@ public void connector(short connectorType) throws SAXException { | |
// and treat it as (A,B,C,....) | ||
|
||
@Override | ||
public void childElement(String elementName, short occurence) throws SAXException { | ||
public void childElement(String elementName, short occurrence) throws SAXException { | ||
Element child = getOrCreateElement(elementName); | ||
modelGroups.peek().addTerm( Occurence.wrap( child, occurence ) ); | ||
modelGroups.peek().addTerm( Occurrence.wrap( child, occurrence ) ); | ||
child.isReferenced = true; | ||
} | ||
|
||
|
@@ -389,7 +389,7 @@ public void childElement(String elementName, short occurence) throws SAXExceptio | |
* Mutable {@link Locator} instance that points to | ||
* the current source line. | ||
* <p> | ||
* Use {@link #copyLocator()} to get a immutable clone. | ||
* Use {@link #copyLocator()} to get an immutable clone. | ||
*/ | ||
private Locator locator; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters